• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Session attribute tags

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all im trying to code some tags for easy access to the session attributes.
this way they can be set and get from within the page.
is my understanding correct that this can all be done through SessionFacade?
and if it is what objects and attributes does jforum put in the session so i can

1 get them in or out.
2 prevent collisions with my own attributes and objects

if this is not correct do i have to get them directly as in
JForum.getRequest().getSession()

I am integrating my site into jforum and would rather use jforum's session management than trying to make mine mesh and duplicate efforts.

Thanks for your help and when done i will contribute my efforts back to the community
[originally posted on jforum.net by kaz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can use SessionFacade(), altough getRequest().getSession() will also work (eg, you can use both).
As far as I remember, I put "logged" and the user session's id.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!