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

    Join Date
    Jun 2001
    Location
    India
    Posts
    0
    Rep Power
    0

    Question Session tracking in JSP & Servlet


    Hi,
    I have one jsp through which user logs in. After checking the authenticity of login from database, i want to put the userid in session variable in my class & should be there throughout my application. My application uses Servlet & Bean Manager & is running on Apache Server of Oracle 91 Application SErver. Now my major problem is once the session declared in JSP, when i want to get the session value in servlet, everytime it's returning me null. Is there any solution? If session variable created in Serv let, would it be retrievable throughout the application.


    Anshul
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Kitchener, Ontario, Canada
    Posts
    31
    Rep Power
    14
    Did you ever get this?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    9
    Rep Power
    0
    Why not you try setting your session attributes in your JSP? I tried that and it seems more stable as JSP directly interacts with the browser to create a session instance when it loads.

IMN logo majestic logo threadwatch logo seochat tools logo