Results 1 to 6 of 6
Thread: Urgent help regarding session
- 03-07-2009, 06:23 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 12
- Rep Power
- 0
Urgent help regarding session
hi friends,
I am presently doing a project on web based criminal database system which requires maintenance of users(police officer) session i.e. admin should have the facility of viewing all the actions done by user like no. of database entries done by user and etc. I know we ve session.getAttribute and setAttribute concept is used for storing an attribute while moving between different pages. Do i ve to use the same for my problem also or ve a better solutions. Please help me to proceed further in my project. Advance thanks for precise reply
- 03-10-2009, 07:31 AM #2
Member
- Join Date
- Feb 2009
- Posts
- 12
- Rep Power
- 0
hi mrvigneshmca,
from ur query, i'm able to assume(i'm not quite clear) that u want 2 maintain & get info of the the session_id s for users when they are logged in. for that:
in ur login page u use session.getId() and it creates session_id for each login and u can keep that id in a session related table(in the database) as long as the session is active(until logged out). And u use session.Invalidate() for the loggin out operation(which clears the session_id for that session from the
table).Now u can develop a page that would use the info from the session table and give the results accordingly.
Hope this helps.
- 03-10-2009, 07:59 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 12
- Rep Power
- 0
hi tirka,
thanks for ur reply.ya I too tried this getId() concept but i am presently developing my jsp page only and not explored into the servlets concept. Will getId() u proposed work on jsp pages. Also one more doubt s tat can v able to list the entries the user has done in database in webpage if can u guide me the way pls
- 03-13-2009, 08:17 AM #4
Member
- Join Date
- Feb 2009
- Posts
- 12
- Rep Power
- 0
certainly it'll work on jsp pages
and what kindda "entries" are u referrin' to..
plz specify...
- 03-13-2009, 09:45 AM #5
Member
- Join Date
- Mar 2009
- Posts
- 12
- Rep Power
- 0
hi tirka,
I mean tat i want to view all the the profiles(all details) user has uploaded in profileentry table which i ve created. How as a admin i could retrieve the particular users work of profile entry in jsp page hope u could understatnd me now
- 03-21-2009, 09:59 PM #6
Senior Member
- Join Date
- Mar 2009
- Location
- USA
- Posts
- 127
- Rep Power
- 0
Similar Threads
-
How to Kill session at application context level by using session Id
By Kishore.Kumar in forum Java ServletReplies: 1Last Post: 04-21-2009, 11:20 PM -
session
By jhen in forum Java ServletReplies: 5Last Post: 03-16-2009, 04:44 PM -
How do I create session for a user when S/he login and expire the session.
By dpk_vash in forum Web FrameworksReplies: 2Last Post: 12-23-2008, 06:35 PM -
session
By jm_it04 in forum AWT / SwingReplies: 0Last Post: 03-04-2008, 11:32 AM -
Use session
By Eric in forum Java ServletReplies: 1Last Post: 07-05-2007, 08:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks