Problem with cookies
Posted: Tue Jan 13, 2009 2:44 am
hi, I try to write application in which cookie is stored in browser.
I stored cookie in browser when i call index page.
But after i click on link of another page in same page ,
the cookie value i set in index page is changed after link in index page clicked.
But when i remove .htaccess file in root then it works fine.
As soon as i insert .htacces file the problem starts again.
The code in .htaccess is:
I dont know why this happening?
It is very strange.
Can any one have solution?
I stored cookie in browser when i call index page.
But after i click on link of another page in same page ,
the cookie value i set in index page is changed after link in index page clicked.
But when i remove .htaccess file in root then it works fine.
As soon as i insert .htacces file the problem starts again.
The code in .htaccess is:
Code: Select all
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([^/]+)/Category/([^/]+).html$ City/Category/Category.php?Cat_Id=$2&City=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([^/]+)(/index.html)? City/Index.php?City=$1
It is very strange.
Can any one have solution?