http://qs1969.pair.com?node_id=330562

jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:

Honored monks,

I am developing a largish on-line learning tool which utilizes CGI::Session to store some state information in a session cookie. I should mention that while our team is developing this we are running seperate CVS copies on different ports. So our testers are accessing this app via http://mysite.com:2311 or :3669 etc. This is working very well under OS X using Safari and Camino and also under XP Pro on IE 6 and NN 4.7 and NN 7.02.

However, one of our testers is using IE 6 on Win 98 and is finding that his state is never properly saved and does not persist. CGI::Session does not have any reported bugs on CPAN but we are hoping some monk has experienced a gotcha with this module before and can advise us where to look for issues. I know some are saying "Where is the code?" and my response (for now at least) is that I am not allowed to post even dummy code, my apologies.

Any information or similar experiences would be greatly appreciated!

TIA
jg
_____________________________________________________
"The man who grasps principles can successfully select his own methods.
The man who tries methods, ignoring principles, is sure to have trouble.
~ Ralph Waldo Emerson

Replies are listed 'Best First'.
Re: CGI Session Problems on Win 98/ IE 6
by qq (Hermit) on Feb 20, 2004 at 17:07 UTC

    Could it be a problem with IE6's privacy policy for cookies? The default privacy setting does not allow cookie if there is not compact privacy policy associated with it. Try setting the privacy setting in IE to low. If that works, google for privacy policy, and check the documentation on MS website. (sorry no time to find links).

    qq

Re: CGI Session Problems on Win 98/ IE 6
by punkish (Priest) on Feb 20, 2004 at 18:04 UTC
    This is working very well under OS X 
    using Safari and Camino and also under 
    XP Pro on IE 6 and NN 4.7 and NN 7.02.
    
    The very fact that your code is working fine in other browser/os combos shows that your code is fine. I have been using CGI::Session for a while now and it is a fine module (I hacked a SQLite driver for it for my use).

    As others suggest, this is a user-specific problem. Start there. See if that user is able to use the app correctly using Netscape/Mozilla/Opera, etc. If that works then the problem is narrowed to IE.

    Good luck.

Re: CGI Session Problems on Win 98/ IE 6
by knowmad (Monk) on Feb 20, 2004 at 15:45 UTC

    Are you using cookies or params to store the session number? If cookies, does your IE user have cookies disabled?

Re: CGI Session Problems on Win 98/ IE 6
by jerrygarciuh (Curate) on Feb 20, 2004 at 19:43 UTC
    Monqueros,
    I thank you all for your time qnd replies. We have located the culprit. All of the folks who were able to use the application either had edited their Windows etc\HOSTS file to map the IP to a name OR were accessing the app via its brand new domain name. The person who was unable to access the application was attempting to do so by IP only. eg http://666.666.666.66

    Our session cookies cannot handle the IP by itself as a name.
    Thank you very much!
    jg

    _____________________________________________________
    "The man who grasps principles can successfully select his own methods.
    The man who tries methods, ignoring principles, is sure to have trouble.
    ~ Ralph Waldo Emerson