File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Exhausted Resultset Error
Session and NullPointerException! URGENT!
datas storing twice from servlet to mysql database
kindly help me in redirecting....... as soon as possible
Error on threads