English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Do I need to close sessions after I start them on my website? What happens if I dont?

2007-08-30 08:33:57 · 5 answers · asked by jeff lemon 1 in Computers & Internet Programming & Design

5 answers

you don't need to close the sessions, they will automatically close once the user closes their browser.

2007-08-30 08:51:20 · answer #1 · answered by sheepbalz 3 · 0 0

Sessions are closed once you close the browser window. In your php.ini file, it is possible to change the length of time a session lasts (usually 30 minutes). You might find, for security purposes, that you wish to close the session after a shorter period of time, so that users are re-prompted for a password incase they leave their computer screen.

2007-08-30 17:15:20 · answer #2 · answered by Nick C 2 · 0 0

I wish there were a way for us to close YOUR session!

2007-09-02 05:30:43 · answer #3 · answered by just "JR" 7 · 0 0

like said above, whe the browser is closed sessions are destroyed. you should probably have a logoff option for users, use the session_destroy() function

2007-09-02 02:50:02 · answer #4 · answered by nigel 3 · 0 0

You can try session_unset() before the hearder to avoide duplicate sessions. Normally its not needed

2007-08-30 22:49:32 · answer #5 · answered by K-Disk.com 5 · 0 0

fedest.com, questions and answers