Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Session State

gremlinsgremlins Member Posts: 1
I have a login page. After the user enters his userId and click enter, i create a sesion.

I am not sure if the code below works to store a session
Session.add("UserId",userId.text)
Session.add("Password",password.text)

When i disable cookies, the id of the session is appended to the URL. But when i logout the page, and relogin, the session id is the same. Why?

It seems that the session is not terminated properly. The previous user login is use at some of the pages. Why?

The code belows abandon the session.
Session.abandon

Please reply asap. Thanx.


Comments

  • WEBMASTERWEBMASTER Member Posts: 549
    Try to clear the session variables manually on your logout page.

    In ASP I do this on my logout page:

    Session("AuthorID")=""
    session("UserName")=""
    Session.Abandon



    [blue][italic][b]/WEBMASTER[/b][/italic][/blue]


Sign In or Register to comment.