SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    How do you clear all session objects and manual end a session?

    In short, I'm developing a web site to conduct a survey. When a user completed a survey and the data have been inserted to the database successfully, I want to clear all the session objects and end the session of that user.

    Also, does anyone know how to go back a page with ASP?

    Is there are any sample site where I could take a look at? I want to know what's the proper way to do this.

    Thanks in advance!

    Kenny

  2. #2
    SitePoint Member
    Join Date
    Oct 2000
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try using javascript:history.back() to return to the previous page.

  3. #3
    I'm baaaaaaaaaaaaack! Fluffykins's Avatar
    Join Date
    Aug 2000
    Location
    Manchester, UK
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This might be completely wrong...

    But i've used ASP before to manage a log-in and security system on a site. When you entered a valid username and password it set a session variable to 1.

    OK, so I built a log-out page too, containing a message saying "Thanks for logging out blah blah blah" and at the very top above the <html> tag the code:

    <% Session.Abandon %>

    The clears the values of all the Session variables and starts you from scratch. Is that what you were after?

    Ady
    v-technologies - Freelance Goodness.


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
  •