In index page the cookie value stored properly.
But whenever i go to second page from index page
the cookie value changes.
This is very strange problem.
I don't know why this happening.
But then i find Cookie value changing because of .htaccess file.
When i remove that file from root and then it works fine but when i add .htaccess file cookie value change
The code in .htaccess is as follow:
Code: Select all
RewriteEngine on
Options +FollowSymlinks
RewriteRule ^/?([^/]+)/Category/([^/]+).html$ City/Category/Category.php?Id=$2&City=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([^/]+)(/index.html)? City/Index.php?City=$1