Closed Thread Icon

Topic awaiting preservation: sessions geting lost (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25537" title="Pages that link to Topic awaiting preservation: sessions geting lost (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: sessions geting lost <span class="small">(Page 1 of 1)</span>\

 
Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 04-17-2005 13:10

i have a login page that generates a session with the users id. now directly after login the session is there and everyrhing is fine as soon as i klick somewhere else on the same site the session is lost :-( any ideas on why this is happening?
can a session be local on one file???

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 04-17-2005 13:26

Are you calling session_start() on every page?

-Butcher-

Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 04-17-2005 13:35

hmm no at the login i use session.add("id") and on the rest of the page i joust use simple if
if session.item("id") = 1 then.....

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 04-17-2005 14:14

Sorry

I was thinking in PHP and you're working with ASP I'm assuming.

I can't help you there... sorry.

-Butcher-

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-17-2005 14:42

and your browser's accepting cookies?

Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 04-17-2005 14:45

sure does

(Edited by Blacknight on 04-17-2005 14:48)

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-17-2005 14:51

well, that would have explained it.

What browser, what's going over the wire (try http://www.httpsniffer.com/ ), are the cookies being send in both directions?

The other option of course would be to append the session identifier to every url...

« BackwardsOnwards »

Show Forum Drop Down Menu