How to start a new session in JSP?

Z

zalek

Hello,
I wrote a JSP application - I want to start a new session on my first
page. I wrote a code:
<%
session.invalidate();
session = request.getSession(true);
%>

I am getting a long error starts like that:

[8/23/08 9:34:17:453 EDT] 0000003a ServletWrappe E SRVE0068E: Could
not invoke the service() method on servlet /Select_env.jsp. Exception
thrown : java.lang.IllegalStateException:
Session Object Internals:
id : 9r0eE_QJbYsM_m5irgLbanq
hashCode : 1516111642
create time : Sat Aug 23 09:29:53 EDT 2008
last access : Sat Aug 23 09:29:53 EDT 2008
max inactive interval : 1800
user name : anonymous
valid session : false
new session : false

overflowed : false


non-serializable app specific session data : {}
serializable app specific session data : {}


Any idea what I did wrong?

Thanks,

Zalek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,116
Members
46,704
Latest member
BernadineF

Latest Threads

Top