Cookie question
Posted: Sat Jun 16, 2007 9:46 pm
I'm editing some code for the first time in a while (not my code) and i'm not familar with cookies.
This is what it is.
I'm writing a news script and basically i need to see if the user is logged in (cookie is set)
So do i want to see if cfg['cookie'] is set or do you guys have any ideas?
Code: Select all
setcookie($this->CFG['cookie']['starting_text'].'_user_name', $this->fields_arr['user_name'], time()+60*60*24*365, '/');I'm writing a news script and basically i need to see if the user is logged in (cookie is set)
So do i want to see if cfg['cookie'] is set or do you guys have any ideas?