$_SESSION[] is retarted

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Locked
ThuggLife
Forum Newbie
Posts: 13
Joined: Wed Oct 08, 2008 9:10 pm

$_SESSION[] is retarted

Post 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?
crazycoders
Forum Contributor
Posts: 260
Joined: Tue Oct 28, 2008 7:48 am
Location: Montreal, Qc, Canada

Re: $_SESSION[] is retarted

Post 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.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: $_SESSION[] is retarted

Post by panic! »

It's 'retarded' not 'retarted'.

http://en.wikipedia.org/wiki/Irony
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: $_SESSION[] is retarted

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Re: $_SESSION[] is retarted

Post by JayBird »

panic! wrote:It's 'retarded' not 'retarted'.

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