Quantcast
Channel: Query about PHP cookie - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Leri for Query about PHP cookie

Instead of:setcookie('cookieusername', $username, 100000);you have to do:setcookie('cookieusername', $username, time() + 100000);The reason is that the third parameter is the expiry time (as a Unix...

View Article



Query about PHP cookie

I'm new PHP guy and I'm using PHP cookie and I'm facing a problem that the cookie can not be set correctly.Here is the statement of Set Cookie setcookie('cookieusername', $username, 100000);and the...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images