SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast mobywan's Avatar
    Join Date
    Jul 2001
    Location
    Bris-Vegas, Australia
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Session.abandon?

    Hey guys.. some advice if you can?

    We're using a session variable to send mail in CDONTS after a request has been submitted and a new record added. What we want to be able to do is kill part of the session variable so that a user can submit another request if they want to. We've tried using session.abandon but it really kills the session which means the user has to log in again to continue.

    Any way to just abandon that one particular variable (called jobcode)? Make sense?

    Thanks
    Mobywan
    There's a difference between knowing the path & walking the path...

  2. #2
    I have an opinion...
    Join Date
    Sep 2001
    Location
    Barrie, Ontario
    Posts
    324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just set the variable value to something easily detectable. If the variable is an integer variable, set the value to 0, then check for that value. You could also use a Boolean.
    Egotist: A person more interested in himself than in me.
    KodeKrash - Eidix - Barrie LUG

  3. #3
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you need help regarding KodeKrash's above statement, just ask, we'll be glad to help.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  4. #4
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could also use the Remove method if you're using ASP3.
    http://www.devguru.com/Technologies/...on_remove.html

  5. #5
    SitePoint Enthusiast mobywan's Avatar
    Join Date
    Jul 2001
    Location
    Bris-Vegas, Australia
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys, got it working with Session("jobcode") = ""

    It was that easy...
    There's a difference between knowing the path & walking the path...

  6. #6
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    doh!
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  7. #7
    SitePoint Enthusiast mobywan's Avatar
    Join Date
    Jul 2001
    Location
    Bris-Vegas, Australia
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah tell me about it... You know that feeling when you're looking so hard at a problem that you perceive the solution to be much more complex than what it really is? Well.. that was one of those times..

    Then again, could be just good ol fashioned inexperience...
    There's a difference between knowing the path & walking the path...


Bookmarks

Posting Permissions

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