I am working with jsp web project now....
In that If some user login with their own login id and password, it shoule be redirected to their own home pages...
i have already done this..
but if some time their own home page is idle, it should be displayed as
"Your session has expired" and it should be redirected to login page...
for this i want jsp code with explanation...
After user gave logout, if user presses "back" button, it shoule not be redirected to their own page... it should be remain still in login page...
for this also i want jsp code with explanation.
siva87
0
Newbie Poster
Recommended Answers
Jump to PostHi siva,
For this u need to check weather session object (which u created) is null or not if it is null then u need to redirect to login page.
I am giving some example:
this is in server side code ..HttpSession session=request.getSession(false); //here …
Jump to Posthi siva,
u can use the above code which i post
All 5 Replies
kalpanakovuru
0
Newbie Poster
kalpanakovuru
0
Newbie Poster
siva87
0
Newbie Poster
kalpanakovuru
0
Newbie Poster
siva87
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.