This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes sessionid problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "sessionid problem" Watch "sessionid problem" New topic
Author

sessionid problem

Kumar Anupam
Greenhorn

Joined: Oct 30, 2004
Posts: 19
I am face a problem while redicating a control to another page. the jsessionid is attached to the URL and page is not displayed. eg.

http://localhost/dispose/tele2_frameMaster.htm;jsessionid=2476581099147291875

This i am doing in JRun web server. this problem comes first time ony whenever we open a new browser. if we press back and try to login again, it didn't come. page is available then.

Plz can somebody guide me to the solution.

code snippet :

...
...
if(r1.next())
{
session.putValue("userId", m_username);
session.putValue("extn_no", m_extn_no);

if(m_username.equals("1947")){

response.sendRedirect("/dispose/tele2_frameMaster.htm");
System.out.println("reqdisp");

}else{

user_name = r1.getString("agent_name");
session.putValue("sess_user",user_name);
response.sendRedirect("/dispose/tele2_newframe6_dataentry.jsp");
}
}
else
{
response.sendRedirect("/dispose/tele2_loginfails.jsp");
}

...
...


Thanks & Regards<br /> <br />Anupam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sessionid problem
 
Similar Threads
Session and NullPointerException! URGENT!
Exhausted Resultset Error
Error on threads
kindly help me in redirecting....... as soon as possible
datas storing twice from servlet to mysql database