...

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



student
01-29-2007, 06:19 AM
hello,
i have set up a cookie using php.
<?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

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

student
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.

felgall
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum