New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Save the password in the browser?
Cookies?!
What about smth like
<?php setcookie("login", $session_id, strtotime( '+30 days' )); ?>
?
Yes... Save password not working.. also not coming save message..
i don't know what.. tell me anything for make it
Where i need to add this code? Login page?
Of course you should adapt this for your use case, especially in terms of security...
But the code you were given here has to find its place after a user is successfully authenticated.
Thanks, im use cloudflare for our site.. thats effect to login ?
Sorry, but I don't understand what you mean...
sorry i mean, cloudflare DNS effect to password saving or login season ?
No. Not at all. Seems like you haven't set any cookies.
You mean if your setup involving Cloudflare influences the implementation of cookies into your sites software? Then nope, it shouldn't...
Exactly. Let the server create a session id and save it as a cookie on the clients device. Further, request the cookie with every action done on the site so the server can check if a client is logged in peroperly. Here's an explanation of the code I wrote:
setcookie - functions name
"login" - a name for the cookie
$session_id - the content of the cookie
strtotime - function
+30 days - how long the cookie is valid until it expires
Who made your website? What is it built with? Are you using a CMS?
here is main script we are using - http://codecanyon.net/item/photofans-your-social-network-to-share-photos/6308014
But now we have changes design
@nexusrain Thank you for help..
Hmmm cookies... Give me some! (With chocolate chips/chuncks if possible)