Welcome Guest, Not a member yet? Register   Sign In
Problem set cookies on PHP server development mode
#1

(This post was last modified: 10-08-2015, 02:08 AM by arma7x.)

Currently, I'm working to store cookie on PHP server development mode using cookie helper, but failed. I put the domain name '.localhost:8000', 'localhost:8000', '127.0.0.1:8000' & '.127.0.0.1:8000'. All of domain I listed doesn't work. Do some browser doesn't allow to store cookie on localhost?? Or any solution to this problem??
Keep calm.
Reply
#2

It depends on the OS you are running Windows Mac etc;

But for cookies on a local host the default config always works.
If your running Windows then you need to set the browsers to allow third party cookies.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

localhost:8000 is not a domain ... it's a domain and a port.

I'm not sure if that's allowed to work, so it may be your problem.
Reply
#4

(This post was last modified: 10-08-2015, 04:56 AM by arma7x.)

I map 127.0.0.1 to localhost.com. Using linux(Netsurf Web Browser) both ci_session and my custom cookies works. But on windows, Mozilla Firefox does not detect any cookies, and Google Chrome only detect ci_session. All test under domain localhost.com:[port]
Keep calm.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB