Re: session_register() - Netscape workaround?

From: Date: Sat, 05 May 2001 07:31:08 +0000
Subject: Re: session_register() - Netscape workaround?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51513@lists.php.net to get a copy of this message
"Johnson, Kirk" wrote: > > > -----Original Message----- > > From: Jennifer [mailto:toxlists@canada.com] > > Subject: Re: [PHP] session_register() > > > > 1. What browser are you using? I, and others, have seen > > erratic results with > > > sessions using Netscape 4.x. If this is your browser, try > > your code with > > > another browser, if possible. > > > > This appears to be the problem. Now what? So I have to forget > > about sessions or forget about the multitude of NS 4.x users that > > still exist? > > At least 3 of us have reported this problem here on this list. No one seems > to have an answer. On the up side, it seems to be erratic, Netscape 4.x > sometimes works. Realistically, this affects less than 10% of your visitors. > So.... I don't know what else to say, except good luck! > I thought of a workaraound for Netscape and would like some feedback on how to do it and whether it is a good idea. I manually edited the session file and Netscape was able to read the variable on subsequent pages. It just can't seem to write it. So I thought, until Netscape 4.x is more of a gonner, I could have my own custom_session_register() function that can open the file and write the info manually. 2 questions. 1) Is there some reason that this would be a bad idea? 2) What is the format of the file? My file contents are testing|s:24:"Let's see if this works."; So that is variable_name|what is the s for? scalar maybe?:value_length?:value in quotes; And I'm assuming that a newline delimits the variables? Sorry, haven't tried a test with more than one variable yet. Jennifer

« previous php.general (#51513) next »