We're going to need to see some of your code to help you further.
-Kevin
  ----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: Kevin Stone ; [EMAIL PROTECTED] 
  Sent: Monday, July 08, 2002 12:15 PM
  Subject: Re: [PHP] UNSETing Session Variables



  I tried to enter the comand as such 
    unset ($_SESSION["choice"]); 

  I thought everything in php was double quotes. but even with single quotes it still 
isn't quite working.  If I do it on the first page then it won't let a later command 
assign anything to the variable, but if I do it on a seperate third page, it doesn't 
reset anything. 

  I have been trying to avoid unregistering variables and then reseting them.  Seems a 
little too messy for my programming tastes. 

  Jed 



       "Kevin Stone" <[EMAIL PROTECTED]> 
        07/08/2002 12:01 PM 

               
                To:        <[EMAIL PROTECTED]>, <[EMAIL PROTECTED] 
                cc:         
                Subject:        Re: [PHP] UNSETing Session Variables 



  unsset($_SESSION['choice']);
  // .. or .. //
  session_unregister('choice');

  -Kevin

  ----- Original Message -----
  From: <[EMAIL PROTECTED]>
  To: <[EMAIL PROTECTED]>
  Sent: Monday, July 08, 2002 11:54 AM
  Subject: [PHP] UNSETing Session Variables


  > I am having a slight problem unseting some session variable.
  >
  > here is an exaple of what I have
  >
  > Page1:
  > choice: 1
  > choice: 2
  > choice: 3
  > choice: 4
  > Click on Submit button after choosing 1, 2, 3, or 4
  >
  > Page 2:
  > Loads information from previoius choice.
  > Start over again
  >
  > I am using a session variable for choice and am trying at the beginning of
  > page 1 to unset the session variable, but it is never beign over written
  > or rest.
  >
  > Please Help
  >
  > Jed


  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php




Reply via email to