Cookies not being created in google chrome

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
atiq576
Forum Newbie
Posts: 7
Joined: Thu May 13, 2010 2:28 am

Cookies not being created in google chrome

Post by atiq576 »

A same application is working fine on one of our pc here and not on other on google chrome. It seems to be due to the cookies because the system is trying to use cookies here

session_set_cookie_params($settings["SecurityUserTimeout"]);
session_cache_expire(round($settings["SecurityUserTimeout"]/60)); // 24 hours
session_name("CartUserSession");
session_start();

On the pc its working shows the cookie CartUserSession but the other one does not. I checked the settings and settings are same on both computers for cookies.

what could be the reason? Due to this none of the session or cookie array is holding any data.

Regards,
Atiq
websitesca
Forum Newbie
Posts: 16
Joined: Fri Jul 09, 2010 2:47 pm

Re: Cookies not being created in google chrome

Post by websitesca »

It might be because you don't actually set a cookie value. Maybe try to set an actual cookie value for your website.

Best,
Georges,
http://www.websites.ca
atiq576
Forum Newbie
Posts: 7
Joined: Thu May 13, 2010 2:28 am

Re: Cookies not being created in google chrome

Post by atiq576 »

There are lot of values set in session, i printed session array after refreshing and nothing comes up, on some pc data is coming and on some it isn't

Atiq
Post Reply