RSS DAILY NEWS TICKER EXAMPLE


home > overview

Brian Moon's Blog: PHP session cookie refresh




Brian Moon has posted a tip (and a bit of code) he's worked up to help make a users cookies last a bit longer than they were originally designed to:

When you start a session, if the user had no cookie, they get a new session id and they get a cookie. You can configure that cookie to last for n seconds via php.ini or session_cookie_set_params(). But, and this is a HUGE but for me, that cookie will expire in n seconds no matter what.

His method provides a way to extend the life of the cookies currently set for the domain by changing the time to live through a series of ini_get calls wrapped in a setcookie() call.




click here to see original article or to find similar articles

 RSS DAILY HEADLINES

HEADLINES

Forces align against GOP in Senate races

Sen. John Ensign, R-Nev., who heads his party's senatorial campaign effort, says he's getting a little more optimistic about this fall's election outcome, but admits challenges have been huge.Even the top Republican in charge of the party's Senate campaigns concedes that the GOP will lose seats this year — the only question is how many.


Sudans president attends Africa summit in Turkey (AP)

Sudanese President al-Bashir enters his car upon his arrival at Ataturk International Airport in Istanbul August 18, 2008. Al-Bashir arrived in Turkey on Monday for a summit of African leaders this week in his first trip abroad since an international court moved to indict him for genocide. REUTERS/Fatih Saribas (TURKEY)AP - Sudanese President Omar al-Bashir attended a summit of African leaders in Turkey on Tuesday in his first trip abroad since an international court indicted him on genocide charges last month.


Pakistani coalition focuses on security, economy (Reuters)

Pakistan's President Pervez Musharraf leaves the presidential house after his resignation in Islamabad August 18, 2008. (Mian Khursheed/Reuters)Reuters - Leaders of Pakistan's coalition government set about tackling pressing economic and security problems on Tuesday as a bomb at a hospital in a northwestern town killed 20 people.



Find this article in Google