aspose file tools
The moose likes Servlets and the fly likes sessionid problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: sessionid problem
 
Similar Threads
Session and NullPointerException! URGENT!
datas storing twice from servlet to mysql database
Error on threads
kindly help me in redirecting....... as soon as possible
Exhausted Resultset Error