In one programm of my application
I am saying session = HttpSession.getSession(true);This is first time I am creating a session in my application.
I am also giving the command
req.isRequestedSessionIdFromCokkie();
 
When this program is first executed , the first time isRequestedSessionFromCookie() returns false
but once I refresh through the browser isRequestedSessionFromCookie() returns True.
 
Is the problem that since my function isRequestedSessionFromCookie() is called in program where i am also creating for the session Object for the first time.
As isRequestedSessionIdFromCookie() determines whether the session is created through cookie or encode URL , I attribute that for the First time my Request Object(req.isRequestedSessionIdFromCookie()) doesnot determine the first time whether the session object is created or no . But once I refresh the second time that function returns true.
 
What I want is I should identify the first time whether cookies are enabled or no??
 
Nimesh
Please help me
 
 
 
 
 
 

Reply via email to