I have two open sessions on different browsers (Firefox, Opera). Both of them run on different user accounts. When I navigate through the administration page, the cookies are ok. But when I try to upload some images, the uploading php script receives the same cookies as in Firefox.
This doesn't happen if I use Internet Explorer instead of Opera.
If you're using Flash - which it seems like you do - this is because all browsers share Flash cookies since they're stored in the same location on the computer. This is not a browser problem, but rather a Flash problem (or feature).
Edit: See Local Shared Object on Wikipedia for a bit more information about Flash cookies.
Related
so my file does not work properly if it is on I.E <11 so I want to redirect the user to a chrome broswer and/or provide a hyperlink to take them to chrome if they are on I.E how would I do that?
A browser cannot launch any other applications on the machine.
I also agree with the suggestions to identify the browser and display the message that this version of the IE browser is not supported.
There are some ways like modifying the registry or by using the batch file or using the custom protocol handler to launch the Chrome browser but these are not the suitable solutions as you need to implement it on each machine.
So most suitable workaround is to inform the users of using the supported browsers by your web app.
I have website and cookies work good for that site on my computer in every browser. But for some people cookies for my site NOT working. They enable cookies in browsers, download new versions of browsers and nothing. What's the problem?
I use this code for setting cookies:
setcookie("local","en",time()+126144000,"/","www.example.com");
Are you sure that your site is always being accessed with the "www"? If not your cookies won't work.Try using this instead:
setcookie("local","en",time()+126144000,"/",".example.com");
I should identify whether the site is accessed by mobile or web. I am using $_SERVER['HTTP_USER_AGENT'] to identify this. Based on that am loading mobile site.
Everything works fine.
My Problem is, If I change the browser settings in blackberry, from blackberry to Firefox or IE, then it is loading the normal site instead of mobile site.
How to overcome this problem? Please help.
NOTE : Am checking in Blackberry 5
You cannot. You are completely dependent on the browser to tell you what it is. User-agent spoofing blasts that "trust" out of the water.
Instead, you can do "functional" tests in Javascript/CSS that provide features for supporting browsers and fallback mechanisms for non-supporting browsers.
But if you want to switch to a mobile site then you really do just have to do as the browser asks. That's the server's job, anyway; if the user has gone out of their way to pretend that their phone is a normal PC, then that's their choice and your server should just do as it's told.
This is why the option exists in the Blackberry browser in the first place.
As an example, I sometimes find myself making my Android browser spoof itself as Firefox on Windows, so that I can use the normal Facebook site and access features that Facebook haven't implemented on their mobile version.
Let a user using Mozilla browser , On three tabs he login to his yahoo account ,gmail and hotmail.
Now if we Clear Recent History , all three session will be cleared.
But at the same time if there is another session in any another browser it will not be cleared.
So What i am trying to ask here is , the cookies and session related details ,browser cache will be in the local computer and it will be cleared on clearing history.
But is it browser specific?
The cookie and all will have any browser specific id , how it will differentiate that now clear the IE history or clear chrome history.
You can in fact use two different accounts on two different browsers at the same time. The browser history/cookies etc are specific to the browser in question.
There isn't a "standard" where browser save their settings, each do it as they file. MSIE might use the Windows Registry while Firefox might use a local database file.
For the server to keep track of a client session a session id is sent to the client. Which the client uses in each request to the server.
On the local computer each browser has it's own way of saving the cookie files. So when you clear the cookies in Firefox, then the cookies saved by Firefox will be deleted. Same thing with Chrome, IE, Safari etc.
They could even be using a own way of serializing the cookies for all that I know.
We have a PHP site that our users as well as clients use. Our login system works fine on all browsers.
Recently we came across a client who was unable to login into the system. We also tested the same on the clients side and failed to find a solution.
When a client logs in a cookie tk_client_admin is created in the browser, this is created correctly on all browsers at our side, but the same fails to create in the clients browser both IE and Chrome. On FF is works both sides.
This issues seems to be happening only on IE and Chrome and for certain clients only, what could be the problem?
Based on the information you provided, it sounds like there is some sort of network wide restriction placed on IE and Chrome. Maybe they're not permitted to created cookies.
Have you tried using the same browsers (IE and Chrome) on their machines to connect to other sites that also require cookies?