Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Invalidating Session Only in IE5.5  RSS feed

 
madhavi, behra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
: : My application works perfectly fine in IE 5.0 but i loose the session and the application logs out in IE 5.5. Can anyone help me with a solution ?
 
Mohamed Yousuff
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The problem lies with the settings and not the version of IE5.5. Your browser must be enabled to accept cookies otherwise your application cannot handle sessions. Follow the steps below.
Tools --> Internet Options --> Security tab --> 'Custom Level button...' . Enable the cookies options. Now your application will hold the sessions properly. I am assuming that your application works fine with IE5.0 as you have stated. Hope you understand the solution
Originally posted by madhavi, behra:
: : My application works perfectly fine in IE 5.0 but i loose the session and the application logs out in IE 5.5. Can anyone help me with a solution ?


------------------
 
madhavi, behra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mohamed,
Thanks for ur response.I have checked my browser settings. Allow cookies that are stored on ur computer - enable
and as u have said my application works perfect in IE5.0
any other option that need to be checked in IE5.5.actually that was the first thing i checked.
thanks and regards,
madhavi

 
Mohamed Yousuff
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am sorry I forgot to mention one thing. There are two types of cookies persistent and non-persistent( in netscape terms ). If you are using getsession() method to manage session, then you have to enable non-persistent cookies. If you manage session by setcookie() method, then you need to enable the persistent cookie. It is better you enable both and retry. Also check the session timeout value. I forgot the name of the function but it is there. Let me know if your request is going through a proxy. If you are still not able to solve the problem let me know the details, how you manage sessions, when you create it, when you validate/invalidate it, skeleton of the source code and other details.

Originally posted by madhavi, behra:
Hi Mohamed,
Thanks for ur response.I have checked my browser settings. Allow cookies that are stored on ur computer - enable
and as u have said my application works perfect in IE5.0
any other option that need to be checked in IE5.5.actually that was the first thing i checked.
thanks and regards,
madhavi



------------------
 
madhavi, behra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yes i have used getSession() method to manage cookies.The two types that need to be enabled in the browser
1. Allow cookies that are stored on your computer.
this is enabled.
2. Allow per-session cookies(not stored)
this is also enabled.
Are u telling anything else that need to be enabled.
ok.i am sending u the code to be more clear.

I am invalidating the session if any and trying to create one if there is none.its working fine in all except IE5.5.Any more suggestions are welcome.
thanks and regards
madhavi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!