Home All Groups Group Topic Archive Search About

Cookies working on intranet but NOT working on Internet

Author
24 Mar 2005 11:26 PM
Martin Heuckeroth
Hi

We are working on a webservice application and are having some
problems with the cookies and/or sessions.

We have them working on our intranet but then its not working on the
internet. We have been looking our asses off but can not find a
working solution.

the code we came up with is ...

Public Sub SetCookies(ByVal cUserAlias, ByVal nUserID)
        Response.Cookies("userInfo")("userAlis") = cUserAlias
        Response.Cookies("userInfo")("userID") = nUserID
        Response.Cookies("userInfo").Expires = DateTime.Now.AddDays(1)
    End Sub

If Not Request.Cookies("userInfo") Is Nothing Then
                cUserAlias =
Server.HtmlEncode(Request.Cookies("UserInfo")("userAlias"))
                nUserId =
Server.HtmlEncode(Request.Cookies("UserInfo")("userID"))
            End If

What are we doin wrong. Why is there no cookie created when we logon
to our project over the internet and IS there a cookie created when we
logon over our intranet. Any help is appreciated

Martin

Author
24 Mar 2005 11:37 PM
Martin Heuckeroth
Ehmm i think this should have been posted in aspnet. Sorry.

Martin


On Fri, 25 Mar 2005 00:26:15 +0100, Martin Heuckeroth
<nick@nospam.invalid> wrote:

Show quoteHide quote
>Hi
>
>We are working on a webservice application and are having some
>problems with the cookies and/or sessions.
>
>We have them working on our intranet but then its not working on the
>internet. We have been looking our asses off but can not find a
>working solution.
>
>the code we came up with is ...
>
>Public Sub SetCookies(ByVal cUserAlias, ByVal nUserID)
>        Response.Cookies("userInfo")("userAlis") = cUserAlias
>        Response.Cookies("userInfo")("userID") = nUserID
>        Response.Cookies("userInfo").Expires = DateTime.Now.AddDays(1)
>    End Sub
>
>If Not Request.Cookies("userInfo") Is Nothing Then
>                cUserAlias =
>Server.HtmlEncode(Request.Cookies("UserInfo")("userAlias"))
>                nUserId =
>Server.HtmlEncode(Request.Cookies("UserInfo")("userID"))
>            End If
>
>What are we doin wrong. Why is there no cookie created when we logon
>to our project over the internet and IS there a cookie created when we
>logon over our intranet. Any help is appreciated
>
>Martin
Author
25 Mar 2005 7:58 AM
Cor Ligthert
Martin,

Why not to a webservice newsgroup, because of the style from answers in the
different groups, do I give you a better place in that one. (There are two
one is inactive and one is active have a check for yourself).

I hope this helps,

Cor