Page 1 of 1

$_SESSION[] is retarted

Posted: Fri Oct 31, 2008 12:32 am
by ThuggLife
Hi, I'm writing a login script that uses a session variable to remember authenticated users. The problem is that I want the session to die when the browser is closed, but it doesn't. It used to erase the session when the browser was closed but then for no apparent reason it stopped working. I was under the impression that the default for session variables is to erase when the browser is closed but mine arn't erased. Is there any way to kill the session variable when the browser is closed?

Re: $_SESSION[] is retarted

Posted: Fri Oct 31, 2008 5:26 am
by crazycoders
How do you use sessions... please tell us because that is the way to go + some little security tweaks we could suggest... It's probably something that you did that made this happens.

Re: $_SESSION[] is retarted

Posted: Fri Oct 31, 2008 6:37 am
by panic!
It's 'retarded' not 'retarted'.

http://en.wikipedia.org/wiki/Irony

Re: $_SESSION[] is retarted

Posted: Fri Oct 31, 2008 10:41 am
by pickle
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.
Locking thread.

Re: $_SESSION[] is retarted

Posted: Fri Oct 31, 2008 2:20 pm
by JayBird
panic! wrote:It's 'retarded' not 'retarted'.

http://en.wikipedia.org/wiki/Irony
:mrgreen: :banghead: :crazy: