Hi guys,
I have a php application with a oracle database backend. The application requires the user to login using a username and password, which are used to query the database.
These are stored in session variables, which work fine. BUT If I open another internet explorer window and then go back to my appplication, the session variables have been re-initialized.
Is there any way to stop this from happening?
Thanks in advance
Session Variables Being Re-initialized!!
Moderator: General Moderators
-
montecristo
- Forum Newbie
- Posts: 20
- Joined: Thu Oct 19, 2006 9:51 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
montecristo
- Forum Newbie
- Posts: 20
- Joined: Thu Oct 19, 2006 9:51 am
Thanks for getting back to me.
I log into my application and it works fine. I then open another window with php developers network.
I then go back to my application and the session variables have been reinitialized.
I don't understand why this happens, perhaps I should put a time limit on the session?
Thanks
I log into my application and it works fine. I then open another window with php developers network.
I then go back to my application and the session variables have been reinitialized.
I don't understand why this happens, perhaps I should put a time limit on the session?
Thanks
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
Have you in any way changed the original page from when you left it? If you are changing your page apon returning to it then perhaps that second page is not communicating with the first, or you are destroying the session before you end up at the second page.
There is no way that it can re-initialise unless you have a Loop (check your code, incase you are infact looping the session info)
There is no way that it can re-initialise unless you have a Loop (check your code, incase you are infact looping the session info)
-
montecristo
- Forum Newbie
- Posts: 20
- Joined: Thu Oct 19, 2006 9:51 am