Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2007, 03:07 PM
Member
 
Join Date: Nov 2007
Posts: 2
sathya_k_83 is on a distinguished road
how to expire a session in struts without using cookies
i am developing an application using struts 1.2. i have a admin login page(AdminId , Password) .i have set scope="session" in struts-config.xml file for the adminLogin action mapping, so i can access the AdminId in consequentive pages like AddEmployee.jsp, AddProduct.jsp.

when i logout i should not be able to access AddEmployee.jsp, AddProduct.jsp by directly specifying in the browser or use back button to go to these pages . but i still can access these pages

can any one tell me some code or way to end a session . the session is set using the struts-config.xml file.

The below code is used to set the session for the admin login

<action path="/AdminLoginPath"
type="org.admin.dev.AdminLoginAction"
name="AdminLoginFormBean" scope="session"
input="/AdminLogin.jsp"> <forward name="Login"
path="/AdminWorkPage.jsp" /> <forward name="HomePage"
path="/index.jsp" />
</action>

scope="session"--> here i set the scope to session
is there a way to specify in struts-config.xml to expire the session for adminLogin which is specified by the above line of code

Last edited by sathya_k_83 : 11-22-2007 at 03:09 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting all the cookies from Servlet Java Tip Java Tips 0 01-25-2008 08:13 PM
Reading cookies in JSP Java Tip Java Tips 0 01-15-2008 04:12 PM
JSP cookies example Java Tip Java Tips 0 01-15-2008 04:11 PM
Reading cookies from JSP Java Tip Java Tips 0 12-10-2007 06:37 PM
cookies question sandor New To Java 1 05-09-2007 01:29 AM


All times are GMT +3. The time now is 07:38 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org