View Full Version : i've set up cookie using php. can i read it using .htaccess?

01-29-2007, 06:19 AM
i have set up a cookie using php.
setcookie("user", "student", 3600);

is it possible to read that cookie using .htaccess?

otherwise please inform me how to set and read cookies using .htaccess.
please give me a link to such tutorial if there is one.

thank you very much

01-29-2007, 09:06 AM
Why do you need to do it with .htaccess?

01-29-2007, 11:49 AM
i want to read the cookie using .htaccess because, i would like to redirect visitors to different urls based on the username that i include in the cookie.

01-29-2007, 09:57 PM
.htaccess isn't a programming language, it is a config file. It therefore has no way to do anything with cookies.