Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

JSP Sessions

  • 28-03-2006 12:13PM
    #1
    Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭


    I have a site that im setting up to use jsp sessions, now i've tried using a test site and the sessions work fine, now i setup sessions on my site and i login, set the attributes and then on the next page all the session variables return null, i know the session is still alive as i have the last accessed and date created on the screen! Anyone have any idea??????

    Would other jsp code mess up a session like the <%@ page.....> tag???


Comments

  • Closed Accounts Posts: 884 ✭✭✭NutJob


    if ur storeing the session as a cookie the cookie requires the live domain which you will probably have as localhost on dev.


    If your using the seession obj you shouldnt have this problem. (and iv been no help)

    <HTML> <BODY>
    Hello, <%= session.getAttribute( "Name" ) %>
    </BODY> </HTML>


  • Registered Users, Registered Users 2 Posts: 1,275 ✭✭✭bpmurray


    Are you sure the vars are session-scope and not request-scope? How are you using them/saving the values?


Advertisement