Re: Need help with PHP4/Sessions
| From: | Martin Neimeier | Date: | Thu, 05 Oct 2000 15:40:50 +0000 |
| Subject: | Re: Need help with PHP4/Sessions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3358@lists.php.net to get a copy of this message | ||
Mattias Hedman wrote:
>
> Hello all!
> I am having trouble making a PHP script that uses sessions and a mySQL
> database.
> Let me explain why.
>
> I am building a login-script.
>
> A successful login should result in letting the user come to a page and also
> start a session that will keep track of what the user is "doing".
>
> And an unsuccessful one - well you know what should happen...
>
> I check the login values against a mySQL db.
>
> Well I am going crazy with this session handling - it is not coming my way.
> I can login - logout. With different user.
> Then if I try with a user which I already have logged in/out with I can't
> get in again.
>
> Why?
> Logout takes care of the "session_destroy"-thing.
> If I don't use logout then regardless of what I log in with the user that
> first logged in stays logged in.
>
> Please help!
> Mattias
> --
> mattias.hedman@popwire.com
> web developer
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
Hello,
a little bit of code would be helpfull to see whats the problem.
cu
Martin
--
UNIX was never designed to keep people from doing stupid things, because
that policy would also keep them from doing clever things. (Doug Gwyn)
--
Martin Neimeier/Ingenieur-Buero Neimeier/Schwarzach/Germany
mailto:nei@ibn.de/http://www.ibn.de(under
heavy
reconstruction)/Tel:+49(6262)912344/Fax:+49(6262)912347