|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cookies working on intranet but NOT working on InternetWe 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 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 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
Anyone tried REALbasic?
ArrayList Strongly Typed VB6 easier than VB.NET? Datagrid colum sorting problem - URGENT How to implement ComboBox.FindValue HELP! Cannot start NEW project vb.net dll Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required Button in a datagrid (windows form) Can forms be imported from MS Access? |
|||||||||||||||||||||||