Session variables....quick question

Results 1 to 4 of 4

Thread: Session variables....quick question

  1. #1

    Default Session variables....quick question

    Hey guys...<BR><BR>Is it possible to clear specified session variables? If I had the following..<BR><BR>session("value1")<BR>session("v alue2")<BR><BR>Can I do this?<BR><BR>session.Contents.Remove("value1")<BR> session.Contents.Remove("value2")<BR><BR>Will that clear them or do they still hold values? Is this the correct syntax?<BR><BR>At the moment im using session.Contents.RemoveAll() and its causing me some unwanted headaches<BR><BR>Thanks,<BR>John

  2. #2

    Default okay I just found this...<BR><BR>Am I correct? Could someone please confirm this for me.<BR><BR>Cheers,<BR>John

  3. #3
    Join Date
    Dec 1969

    Default RE: Session variables....quick question

    You can remove the entries using the method you&#039;ve shown. Or you can "clear" them by setting them to blank. In reality the difference is minimal - the only difference I can think of being that if you set them to blank strings, they will still appear if you iterate through the session data.<BR><BR>Craig.

  4. #4

    Default thanks Craig!

    11:45pm here...<BR><BR>Im off to bed mate!<BR><BR>John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts