Session does not start after logout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
krsm1980
Forum Commoner
Posts: 25
Joined: Sat Jan 09, 2010 12:33 am
Location: IN
Contact:

Session does not start after logout

Post by krsm1980 »

Hello forum,

I am controlling my admin pages with the help of session varriable.

Login Page -> controller -> class -> if everything goes well, i am welcoming user to Admin Home page.

i am creating session varriable in my class pages.

Now the problem is, when someone logs out, and i destroy my session; then again i want to logged into the system from the same window......the system is not letting me in....that means i am not able to create new session from the same browser window...

Can you plz help me with this.....

Regards.
Festy
Forum Commoner
Posts: 28
Joined: Wed Jan 30, 2008 10:01 pm

Re: Session does not start after logout

Post by Festy »

Have you tried session_start() after destroying your session?
May be posting your logout page code would make things more clear.
User avatar
krsm1980
Forum Commoner
Posts: 25
Joined: Sat Jan 09, 2010 12:33 am
Location: IN
Contact:

Re: Session does not start after logout

Post by krsm1980 »

Festy wrote:Have you tried session_start() after destroying your session?
May be posting your logout page code would make things more clear.
yes, i m already doing so....

I have used session_start() in my config.php page which is included in my class.php
where session is created but it does not returned the value of session second time I login...
regards
Post Reply