• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

username in httpSession ?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, I see.

So, if you were allowed to grab this kind of information using a "getAttribute()" method ( or similar ), then it would help you? I can think in some config option to allow that.. Something like "enable.raw.session.data", which then can be accessed in the form



which is the same of



However, having something like this the data will be almost duplicated in the session ( well, it's possible to provide a better approach, but then it will require some major changes here and there ).

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm using the accessLogValve and awstats to make usage statistics on my site.
The accesLogValve enable to put in the logfile a field from HttpSession. I used this feature to add the username in my own site, it works great.

I was then wondering if I could do the same with jforum. Ie is there an attribute in the httpSession where the login is store?

Pala.
[originally posted on jforum.net by pala]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

pala wrote:Hello,

I'm using the accessLogValve and awstats to make usage statistics on my site.
The accesLogValve enable to put in the logfile a field from HttpSession. I used this feature to add the username in my own site, it works great.

I was then wondering if I could do the same with jforum. Ie is there an attribute in the httpSession where the login is store?

Pala.



Yes.:



(eg, the username is not directly written to the session, but to a data structure which is kept in the session ).

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



(eg, the username is not directly written to the session, but to a data structure which is kept in the session ).

Rafael



I don't think that's usable

see http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

There is also support to write information from the cookie, incoming header, the Session or something else in the ServletRequest. It is modeled after the apache syntax:

%{xxx}i for incoming headers
%{xxx}c for a specific cookie
%{xxx}r xxx is an attribute in the ServletRequest
%{xxx}s xxx is an attribute in the HttpSession



Anyway not so important feature ;)
I was just asking in case of ..

Pala.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would solve the problem, but it is probably not worth the duplication of all data.. well depends what you would duplicate and if it is a real duplication or just another reference.


[originally posted on jforum.net by pala]
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic