PC Review


Reply
Thread Tools Rate Thread

Cookies working on intranet but NOT working on Internet

 
 
Martin Heuckeroth
Guest
Posts: n/a
 
      24th Mar 2005
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

 
Reply With Quote
 
 
 
 
Martin Heuckeroth
Guest
Posts: n/a
 
      24th Mar 2005

Ehmm i think this should have been posted in aspnet. Sorry.

Martin


On Fri, 25 Mar 2005 00:26:15 +0100, Martin Heuckeroth
<(E-Mail Removed)> wrote:

>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


 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      25th Mar 2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Temporary Internet Content and Cookies not working correctly Ted Smith Windows Vista General Discussion 0 7th May 2010 02:02 PM
Hit Counter not working on Intranet? =?Utf-8?B?U3VzYW4gUA==?= Microsoft Frontpage 1 20th Dec 2005 09:29 PM
Cookies working on intranet but NOT working on Internet Martin Heuckeroth Microsoft ASP .NET 5 1st Apr 2005 02:37 AM
Intranet network not working Debbie Bond Windows XP Networking 0 12th Feb 2004 07:49 PM
Local network working, Internet not working on one machine Richard Vegsund Windows XP Networking 1 2nd Aug 2003 07:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 AM.