/    Sign up×
Community /Pin to ProfileBookmark

Problem in remeber me option in php

Hello Everyone

I am facing two problems.
First, i want to use remeber me option while login to my site using php,mysql using cookies.
Second one, user will be automitically logged out if he is not using or browsing my page if he previously logged in to my site and user will get a message about the resaon why he is logged out, this script also using cookies.

Waiting for any ones reply.

Take care.

BaPpY

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@LiL_aaronApr 30.2006 — A cookie is for... so if the user does leave the site and come back... they shouldnt need to relogin, unless there cookie session as ran out.

What you would what is use of sessions, and not cookies.

http://uk.php.net/manual/en/function.session-start.php

Aaron
×

Success!

Help @Shajjad_Hossain spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...