• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

isRequestedSessionIdValid == false every time

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I have written about 10 web applications using a basic, in-house session management architecture with no issues, however, my company has decided to implement single sign on with WAS and Domino so the config on the appserver has changed to use security with LTPA and also SSO (Single Sign On). Now here is the back ground.
1. Running WAS 3.5.4 on Windows 2000 (its my desk top, i have to use WAS instead of VAJ WTE cause of no cookie support)
2. Global Security is on and configured correctly ( i am getting the sessessionid and ltpatoken cookies generated so no problems there)
Session Manager settings
1. Sessions are enabled.
2. Cookies are enabled. (Both on the server AND ON IN MY BROWSER -- IE 5.5)
3. cookie name=sesessionid
4. domain name=<domainName>.com
5. Cookie max age=-1 (set to live as long as the session),
6. cookie secure=no(haven't set this yet), cookies are NOT persistant, invalidation time for the SERVER is 1800 secs, invalidation time for the webapps are 30 min (acctual values), cache is enabled, and overflow is enabled.
Now here is the issue, i have a problem when i run th following code in my servlet.

the get requested session id method always returns false and the session is always null... This is correct for the first time i hit the servlet but not for every time after that. And after the initial creation of the request.getSession(true) when i re-enter the servlet the session is null AGAIN. I have never had this problem before, any ideas??
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
u can just use the getSession() method which returns the current session or a new session if the request does not have one.
 
Heath Lilley
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I have to do other different processes that depends on the true or false value... this is a little cleaner in the complete code.
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic