Re: RE: Session Problems
| From: | Subhrajyoti Moitra | Date: | Wed, 05 Jul 2000 06:07:47 +0000 |
| Subject: | Re: RE: Session Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4874@lists.php.net to get a copy of this 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 ...
--------------------------------------------------------------------------------------
SECURITY IS A MYTH........!!!!!!!!
"Linux for people with avg. IQ above 98"
--------------------------------------------------------------------------------------
Subhrajyoti Moitra ------- C/212 Hall-I IIT-Kanpur India 208016
email: subhra@iitk.ac.in
On Tue, 4 Jul 2000, Bob Horton wrote:
> 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
> *******************************************
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>