.htaccess file changing cookie value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kalpesh
Forum Commoner
Posts: 54
Joined: Sun Sep 21, 2008 5:04 am

.htaccess file changing cookie value

Post by kalpesh »

hi, i try to store cookie value.
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
 
Post Reply