RE: [PHP] RE: Session Problems
| From: | Bob Horton | Date: | Wed, 05 Jul 2000 14:26:15 +0000 |
| Subject: | RE: [PHP] RE: Session Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4946@lists.php.net to get a copy of this message | ||
I don't understand why, perhaps I found a bug, but when I changed my
session_register statements back to 1 variable for each session_register
(rather than "var1, var2, var3") it seems to be working just fine again.
That seems to have solved it. I'll need to test some more to be sure but I
think that's it!
> -----Original Message-----
> From: Subhrajyoti Moitra [mailto:subhra@iitk.ac.in]
>
> can u give alittle bit for your codes ...
> i mean the form as well as the susequent pages.....
>
> On Wed, 5 Jul 2000, Bob Horton wrote:
>
> > >From the login page to the login test page I use a form and a
> POST method.
> >
> > Everything after that I either put the Session_ID right on the
> URL (like the
> > documentation says) or it comes from the Cookie (in other
> words, I always
> > put SID into the URL and PHP handles the rest).
> >
> > Before I had the login form first everything worked fine but
> now with the
> > login form in place it doesn't work at all! Very frustrating!
> >
> > > -----Original Message-----
> > > are u using POST method for for going to the next page ???
> > > i think in each POST a new session is started ... when u put a
> > > session_start().... u can pass the session id .... to the next page
> > > probably use a database to put in your session variables and
> .. query it
> > > in the next page ....
> > >
> > > i dont kknow if this is what u want ....
> > > otherwise if cookies is turned on then u should be having no
> problems ...
> > >
> > > > Hi,
> > > >
> > > > I can't figure out why my sessions aren't working right.
> I'm using PHP
> > > > 4.0.0 under Apache as a module on RedHat 6.2
> > > >
> > > > I had 2 pages and the session was going back and forth between them
> > > > perfectly. Then I added a login form with a script to test the
> > > userid and
> > > > password and set the previously hard coded user_id variable
> > > (registered in
> > > > the session) to the current user_id. How easy could it be!
> > > >
> > > > I remove the hard coded user_id from the two pages and I put in
> > > a login page
> > > > that calls another script DOLOGIN.HTML DoLogin checks the
> User_Id and
> > > > Password and then does an INCLUDE of the first screen of the app.
> > > >
> > > > Looks like it worked perfectly except that everything I click
> > > on to take me
> > > > to the second screen causes the Login test to jump back to the
> > > login form as
> > > > if there is no variable set!
> > > > So I check. There aren't any variables set. They all show up
> > > like they're
> > > > registered but no values are stored!
> > > >
> > > > Any ideas would be really appreciated!
> > > >
> > > > Thanks.
> > > >
> > > > P.S. If you could please CC me directly as well so I get the
> > > reply faster I
> > > > would appreciate it!
> > > >
> > > > *******************************************
> > > > * Bob Horton - PneumaSoft Inc
> > > > * Custom Software Development Services
> > > > *
> > > > * Ph: (306) 949-5610 Fax: (306) 924-5326
> > > > * bhorton@pneumasoft.com ICQ: 32058710
> > > > *******************************************
> >
>