Session

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
mnewman
Forum Newbie
Posts: 10
Joined: Tue Sep 20, 2011 7:53 pm

Session

Post by mnewman »

How to restart the session w/out logging out?
is it possible?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Session

Post by Celauran »

User avatar
mnewman
Forum Newbie
Posts: 10
Joined: Tue Sep 20, 2011 7:53 pm

Re: Session

Post by mnewman »

how am i going to execute that?
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Session

Post by flying_circus »

mnewman wrote:how am i going to execute that?
What have you tried?

Code: Select all

<?php
  session_destroy();
  $_SESSION = array();
?>
User avatar
mnewman
Forum Newbie
Posts: 10
Joined: Tue Sep 20, 2011 7:53 pm

Re: Session

Post by mnewman »

ohh..okey
Post Reply