2
I am using the Safari browser, and am programming in PHP 5.5. inexplicably safari does not secure session... nor actually creates!
In other browsers my system works correctly, only in Safari has this problem... I wonder if it is some configuration in my browser, or if it is something I have to configure in PHP 5.5 or if it is something else that is passing me unnoticed
Basically the only thing I use is:
session_start();
At the beginning of each file that uses the PHP session
In the body of the index.html page I use frames to mount my page, something like:
<frameset>
<frame src="topo.html"/>
<frameset id="fraCorpo" ">
<frame src="menu.html" />
<frame src="corpo.html" />
</frameset>
</frameset>
Are you sure it is not blocked in some way the creation of
cookies
. Because sessions are usually supported on the use ofcookie
. Take a look if any extension, plugin or setting is not blocking.– Wakim
The browser Safari is clean of extensions, I installed it a couple of weeks ago, and only for testing here in the company.......
– MarceloBoni
Hello consider checking cookies, http://www.timeanddate.com/custom/cookiessafari.html. If you can post the code, it would be good.
– Hiago Souza
updated above the code I use
– MarceloBoni
Remember that if you are going to use the session between the various frames, there is a good chance that it will not work right in any browser on the first page load, especially if you arrow the session in one of the frames. There it may work well, but as a coincidence (because it depends on the order of load of each element the initial propagation of the session by cookies). In this case a possible path is to create the session in Frameset and include the session ID in the frame URL, for example
<frame src="corpo.html?SID=...">
.– Bacco
As @Bacco commented, probably the problem lies in the fact of loading your site in frames, which is not recommended nowadays.
– gmsantos