File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes PHP and the fly likes Current user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "Current user" Watch "Current user" New topic

Current user

Stephan van Hulst

Joined: Sep 20, 2010
Posts: 4615

Hey guys,

I'm fairly new to PHP, and I'm quickly throwing a website together. Now, I would like to know whether this is a sound (read: secure) way of retrieving whether the user is logged in:
Also, would the following be a proper way of logging a user in?


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
I agree. Here's the link:
subject: Current user
It's not a secret anymore!