struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nuwan Chandrasoma" <mymail...@gmail.com>
Subject Re: [OT]Re: Session Expires too early! Help!
Date Thu, 17 May 2007 12:07:10 GMT
Hi,

what i think is, when your page refresh an action is called, in that action 
you may be resetting or removeing this attribute or there must be some kind 
of code that is resetting this, as of i know there is no setting in web.xml 
or struts-config where you can set refresh settings.

Thanks,

Nuwan


----- Original Message ----- 
From: "vikas rao" <vikas5678@gmail.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, May 17, 2007 6:05 AM
Subject: Re: [OT]Re: Session Expires too early! Help!


> Yes, This is what is happening, I seperated out the condition for userType
> from getSession and it turns out that it is the userType and not the 
> session
> which is showing NULL and hence logs out.
> The user type becomes null when the screen refreshes, so its a problem 
> with
> the refresh, this is what i think.
> However, i dont see any configuration to handle refresh on the web.xml or
> the struts-config.xml....
>
> On 5/17/07, Nuwan Chandrasoma <mymailnot@gmail.com> wrote:
>>
>> This is not a struts related issue, check your logic in the code, the
>> attribute userType may be not in the session.
>>
>> Thanks,
>>
>> Nuwan
>>
>>
>> ----- Original Message -----
>> From: "vikas rao" <vikas5678@gmail.com>
>> To: "Struts Users Mailing List" <user@struts.apache.org>
>> Sent: Thursday, May 17, 2007 5:32 AM
>> Subject: Re: Session Expires too early! Help!
>>
>>
>> >I did check the session time out tag, it is:
>> > <session-config>
>> >        <session-timeout>3600</session-timeout>
>> >    </session-config>
>> >
>> > But inspite of this, error comes from my logout.java:
>> >
>> >            if ((request.getSession() == null) ||
>> >                (request.getSession().getAttribute("userType") == null))
>> {
>> >                System.out.print("!!!! userType SESSION ATTRIBUTE IS 
>> > NULL
>> > in
>> > LOGOUT Action !!!");
>> >
>> >
>> >
>> > On 5/17/07, Nuwan Chandrasoma <mymailnot@gmail.com> wrote:
>> >>
>> >> Hi,
>> >>
>> >> look at you web.xml, you may have specified session time out time as 2
>> >> mins.
>> >>
>> >> <session-config>
>> >>
>> >> <session-timeout>30</session-timeout>
>> >>
>> >> </session-config>
>> >>
>> >> if you set this as 30, the session will time out after 30 min of idle
>> >> time,
>> >>
>> >>
>> >>
>> >> Thanks
>> >>
>> >> Nuwan
>> >>
>> >>
>> >>
>> >> ----- Original Message -----
>> >> From: "vikas rao" <vikas5678@gmail.com>
>> >> To: <user@struts.apache.org>
>> >> Sent: Thursday, May 17, 2007 4:47 AM
>> >> Subject: Session Expires too early! Help!
>> >>
>> >>
>> >> > Hi,
>> >> > I am working on a bug in my application, the problem is, the session
>> >> > expires
>> >> > every 2 minutes or so and I have to log back in to continue, this is
>> >> very
>> >> > frustrating. How do I go about debugging this? Which areas of the
>> code
>> >> do
>> >> > you guys think would be best to check for errors?
>> >> > Any inputs would be very appreciated.
>> >> > Thanks.
>> >> > Vikas.
>> >> >
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message