PDA

View Full Version : Cookie in FireFox



JoacimEriksson
26-Nov-2007, 06:23 AM
This is my case and my "problem"

I have and Ajax application that I want to be language depended on the user
that logs in.
I also has Client locking on the user.

<%
Dim Sprak, Session, ClientLock, Client
Dim sRowID
sSessionKey = Request.Cookies("vdfSessionKey")
Session=(oSessionManager.Call("get_InitForm",sSessionKey,"Art"))
Sprak=oSessionManager.Call("get_Sprak",sSessionKey)
ClientLock=oArt.Call("get_ClientLock",sSessionKey)
sRowID=oArt.Call("get_RowID",sSessionKey)
%>

This I have at the top of every .asp file to set up rights, Client locking,
language and so on.

My test is to see so that the clientlocking and language will stay with the
session if I have more then one browser.

I have 2 IE browser and there everything seemes to work nice
In FireFox I tested the same but with different results.
The second FF browser will not have a new Session delegared to it ( the way
IE did )

My question is, Is the Request.Cookies("vdfSessionKey") handled different in
IE and FF?
and is there a way to fix this?
Am I doing something wrong? ( probably, bút what? :-) )

have a nice day¨
// joacim

Harm Wibier
26-Nov-2007, 07:15 AM
Hello Joacim,

The are certainly differences in the way browsers handle cookies. Because
this happens on the client and depends on user settings you can't fully
control this behavior. You can set the expiration date for cookies which
should make sure the browser remembers them, but still you will have to rely
on the browsers implementation. The AJAX Library only sets and gets the
Response.Cookies("vdfSessionKey") cookie Request.Cookies("vdfSessionKey")
and doesn't anything else.

More information about ASP, IIS & cookies can be found at:
http://msdn2.microsoft.com/en-us/library/ms524757.aspx

--
Regards,


Harm Wibier
Data Access Europe B.V.
http://www.dataaccess.nl/

"Joacim Eriksson" <joacim@brl.nu> wrote in message
news:YobtJ7BMIHA.2640@dacmail.dataaccess.com...
> This is my case and my "problem"
>
> I have and Ajax application that I want to be language depended on the
> user that logs in.
> I also has Client locking on the user.
>
> <%
> Dim Sprak, Session, ClientLock, Client
> Dim sRowID
> sSessionKey = Request.Cookies("vdfSessionKey")
> Session=(oSessionManager.Call("get_InitForm",sSessionKey,"Art"))
> Sprak=oSessionManager.Call("get_Sprak",sSessionKey)
> ClientLock=oArt.Call("get_ClientLock",sSessionKey)
> sRowID=oArt.Call("get_RowID",sSessionKey)
> %>
>
> This I have at the top of every .asp file to set up rights, Client
> locking, language and so on.
>
> My test is to see so that the clientlocking and language will stay with
> the session if I have more then one browser.
>
> I have 2 IE browser and there everything seemes to work nice
> In FireFox I tested the same but with different results.
> The second FF browser will not have a new Session delegared to it ( the
> way IE did )
>
> My question is, Is the Request.Cookies("vdfSessionKey") handled different
> in IE and FF?
> and is there a way to fix this?
> Am I doing something wrong? ( probably, bút what? :-) )
>
> have a nice day¨
> // joacim
>
>
>