#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    14
    Rep Power
    0

    session.removeAttribute() don't work - logoff function


    Hi all,

    I'm trying to implement a logoff function. In order to remove an ID from the session, I tried this:
    Code:
    session.removeAttribute("id");
    Didn't work. Tried this:
    Code:
    id = null;
    session.setAttribute("id", id);
    Didn't work neither...I would like the id to be null after performing the logoff but I see no way to doing this...any ideas?

    Thanks a lot!
    ::tiago
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    14
    Rep Power
    0

    solution


    The solution is:
    Code:
    session.invalidate();
    ::tiago

IMN logo majestic logo threadwatch logo seochat tools logo