 |
|
 |
|
Next: setQueryTimeout not working
|
| Author |
Message |
External

Since: Aug 03, 2004 Posts: 1
|
(Msg. 1) Posted: Tue Aug 03, 2004 9:54 am
Post subject: One question about sessions Archived from groups: alt>comp>lang>php, others (more info?)
|
|
|
Hello, everyone:
I've been learning how to use sessions and I'm doing OK, so far.
However, I've noticed that the server does not delete the files on the
'sessiondata' directory where it stores de data between calls unless I
explicitly destroy the session with session_destroy() (I've tested Apache
1.3.27 and IIS 4).
Question:
Do I need to be worried about this? I don't want to write scripts that leave
files after files building up at the server, but I've not been able to come
up with a good way to destroy the sessions since the user can always just
close de browser or type in a new URL and ignore any button or link I put on
the webpage.
What's the common practice about this?
Thank you for reading.
Best regards,
Jose' Correia >> Stay informed about: One question about sessions |
|
| Back to top |
|
 |  |

Joined: Jan 06, 2004 Posts: 660
|
(Msg. 2) Posted: Tue Aug 03, 2004 1:01 pm
Post subject: Re: One question about sessions [Login to view extended thread Info.]
|
|
|
| Jose Correia wrote: |
Hello, everyone:
I've been learning how to use sessions and I'm doing OK, so far.
However, I've noticed that the server does not delete the files on the
'sessiondata' directory where it stores de data between calls unless I
explicitly destroy the session with session_destroy() (I've tested Apache
1.3.27 and IIS 4).
Question:
Do I need to be worried about this? I don't want to write scripts that leave
files after files building up at the server, but I've not been able to come
up with a good way to destroy the sessions since the user can always just
close de browser or type in a new URL and ignore any button or link I put on
the webpage.
What's the common practice about this?
Thank you for reading.
Best regards,
Jose' Correia |
Jose, sessions automatically destroy themselves after a set amount of time determined by the server-if no user interaction. So you don't have to worry about files staying on the server. Cookies on the other side, do stay on the server, depending on the amount of life they have been given. Also if multiple cookies are declared, there would be multiple files present.
So again, nothing to worry in your case. >> Stay informed about: One question about sessions |
|
| Back to top |
|
 |  |
External

Since: Dec 08, 2003 Posts: 36
|
(Msg. 3) Posted: Wed Aug 04, 2004 3:53 am
Post subject: Re: One question about sessions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"steve" schrieb im Newsbeitrag
[...]
> Cookies on the
> other side, do stay on the server, depending on the amount of life
> they have been given.
[...]
I guess you mean on the client? Or is there something they did not yet teach
me?
--
Markus >> Stay informed about: One question about sessions |
|
| Back to top |
|
 |  |
External

Since: Aug 04, 2004 Posts: 1
|
(Msg. 4) Posted: Wed Aug 04, 2004 12:32 pm
Post subject: Re: One question about sessions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
steve wrote in message ...
> "Jose Correia" wrote:
> > Hello, everyone:
> >
> > I?ve been learning how to use sessions and I?m doing OK,
> > so far.
> > However, I?ve noticed that the server does not delete the files
> > on the
> > ?sessiondata? directory where it stores de data between
> > calls unless I
> > explicitly destroy the session with session_destroy() (I?ve
> > tested Apache
> > 1.3.27 and IIS 4).
> >
> > Question:
> > Do I need to be worried about this? I don?t want to write
> > scripts that leave
> > files after files building up at the server, but I?ve not been
> > able to come
> > up with a good way to destroy the sessions since the user can
> always
> > just
> > close de browser or type in a new URL and ignore any button or link
> I
> > put on
> > the webpage.
> >
> > What?s the common practice about this?
> >
> > Thank you for reading.
> > Best regards,
> > Jose? Correia
>
> Jose, sessions automatically destroy themselves after a set amount of
> time determined by the server-if no user interaction. So you don?t
> have to worry about files staying on the server. Cookies on the
> other side, do stay on the server, depending on the amount of life
> they have been given. Also if multiple cookies are declared, there
> would be multiple files present.
>
> So again, nothing to worry in your case.
Thank you for answering, Steve.
But those session files do stay on the server for a long period of
time, you know?
I've been testing with sessions on PHP for about one month and they
still there. Maybe this is related to the settings on php.ini, I'll
search a bit more on that.
From your answer, however, I'm getting the idea that this is more a
concern for the web server administrator then for the programmers and
therefore I will not spend too much time trying to assure the session
is explicitly destroyed.
Once again, thank you for your answer.
Jose' Correia >> Stay informed about: One question about sessions |
|
| Back to top |
|
 |  |

Joined: Jan 06, 2004 Posts: 660
|
(Msg. 5) Posted: Wed Aug 04, 2004 1:27 pm
Post subject: Re: One question about sessions [Login to view extended thread Info.]
|
|
|
| Markus Ernst wrote: |
"steve" <UseLinkToEmail.DeleteThis@dbForumz.com> schrieb im Newsbeitrag
news:410fc5ca$1_3@news.athenanews.com...
[...]
> Cookies on the
> other side, do stay on the server, depending on the amount of life
> they have been given.
[...]
I guess you mean on the client? Or is there something they did not yet teach
me?
|
You are right, cookies on the "client" not "server".. my mistake. >> Stay informed about: One question about sessions |
|
| Back to top |
|
 |  |
| Related Topics: | sessions - Hi, I have just started to work with sessions, but it won't work. The code I have is: index.php: <?php session_start(); $_SESSION['var_waarde'] = "Gewoon een waarde"; echo "<a href=\"vervolg.php\">Continue</...
SESSIONS - Good day, We have some Java programmers in our software dev, and they are pressuring us to use Sessions to store data and use that Session to get query data. They say that it is ok since it is like Entities in Java. I am baffled as a .NET programmer, we...
new to sessions - escuse me the keyboard in Tallin airport i work on http://panbaltica.com/docman/action_popup.php i have one session_start which causes 2 errors i send headers not to cache the page then the session_start - it should be elsewhere it is a test - anyway, ...
New to Sessions 2 - Hi! I started a thread app 2 weeks ago and redlied to that, but it seems to be so low in the list, that it will not be seen. My problem - I need to transfer the sesstion to another page? say page1.php goes to page2.php ( <a href="page2.php&quo...
Sessions - Hi, My site works on sessions. Currently when a user logs in, I store all information in a database table. Whenever the user does something, I check the database to see if the session is active. If so, I update the date and time and then update the.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|