By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,609 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

How to autologin?

P: 3
If I have a login page, and i want to leave the others to access without writing username and password how to do it?

There is a form and I can do it with input type hidden, but in "view source page" the others can see the username and password.

How to implements it?
Aug 2 '07 #1
Share this Question
Share on Google+
4 Replies


nathj
Expert 100+
P: 938
If I have a login page, and i want to leave the others to access without writing username and password how to do it?

There is a form and I can do it with input type hidden, but in "view source page" the others can see the username and password.

How to implements it?
If I were you I would take a look at the $_SESSION and $_COOKIE in php. These should help you.

Have a look at this tutorial. I've never used it but it seems okay to me.

Cheers
nathj
Aug 2 '07 #2

100+
P: 228
jx2
If I were you I would take a look at the $_SESSION and $_COOKIE in php. These should help you.
DONT USE COOKIE for that purose - cookies can be seen in internet files

use session!!

i hope tht helped
jx2
Aug 2 '07 #3

nathj
Expert 100+
P: 938
DONT USE COOKIE for that purose - cookies can be seen in internet files

use session!!

i hope tht helped
jx2
I personally agree and never use cookies, however, I thought I would present both options, for the sake of completeness

nathj
Aug 2 '07 #4

kovik
Expert 100+
P: 1,044
DONT USE COOKIE for that purose - cookies can be seen in internet files

use session!!
If he's actually after an auto-login (though the post sounds very confusing, so he may be after something else), then a session wouldn't work at all. A cookie would need to be used. Any auto-login (i.e. these forums) are done through a cookie, because sessions don't last indefinitely.
Aug 2 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.