DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 17 Aug 2007 16:06:07 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    pelegk1
          2    Peter Bromberg [C# MVP]
          3    pelegk1
          4    pelegk1
          5    Juan T. Llibre
          6    pelegk1


asp.net 2 @ client coockies   
i am trying to use this code:
[code]
 If (True = Request.Browser.Cookies) Then ' this works!
Dim testCookie As New HttpCookie("LastVisited")
            testCookie.Values.Add("time is now", DateTime.Now.ToString)
            testCookie.Expires = DateTime.Now.AddDays(20)
            testCookie.Domain = "localhost"
            Response.AppendCookie(testCookie)
end if
[/code]
to save a coockie on a localhost and it isnt working.
what am i doing wrong? 
what if i put the prject on a temp server can i then write a coockie even if 
i dont have a domain?
under which name will i see it in the  Temporary Internet Files folder?
and should i use the above code for a new coockie and for an existing coocike?
or shouldi  use somme diffrent code?

thnaks in advance
peleg
Date:Fri, 17 Aug 2007 16:06:07 -0700   Author:  

RE: asp.net 2 @ client coockies   
I'd set the path property to "/" and leave off the localhost "domain". See if 
that helps.
Peter
-- 
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com



"pelegk1" wrote:


> i am trying to use this code:
> [code]
>  If (True = Request.Browser.Cookies) Then ' this works!
> Dim testCookie As New HttpCookie("LastVisited")
>             testCookie.Values.Add("time is now", DateTime.Now.ToString)
>             testCookie.Expires = DateTime.Now.AddDays(20)
>             testCookie.Domain = "localhost"
>             Response.AppendCookie(testCookie)
> end if
> [/code]
> to save a coockie on a localhost and it isnt working.
> what am i doing wrong? 
> what if i put the prject on a temp server can i then write a coockie even if 
> i dont have a domain?
> under which name will i see it in the  Temporary Internet Files folder?
> and should i use the above code for a new coockie and for an existing coocike?
> or shouldi  use somme diffrent code?
> 
> thnaks in advance
> peleg
Date:Sat, 18 Aug 2007 09:00:03 -0700   Author:  

RE: asp.net 2 @ client coockies   
thnaks alot the path did it!

"Peter Bromberg [C# MVP]" wrote:


> I'd set the path property to "/" and leave off the localhost "domain". See if 
> that helps.
> Peter
> -- 
> Recursion: see Recursion
> site:  http://www.eggheadcafe.com
> unBlog:  http://petesbloggerama.blogspot.com
> BlogMetaFinder:    http://www.blogmetafinder.com
> 
> 
> 
> "pelegk1" wrote:
> 
> > i am trying to use this code:
> > [code]
> >  If (True = Request.Browser.Cookies) Then ' this works!
> > Dim testCookie As New HttpCookie("LastVisited")
> >             testCookie.Values.Add("time is now", DateTime.Now.ToString)
> >             testCookie.Expires = DateTime.Now.AddDays(20)
> >             testCookie.Domain = "localhost"
> >             Response.AppendCookie(testCookie)
> > end if
> > [/code]
> > to save a coockie on a localhost and it isnt working.
> > what am i doing wrong? 
> > what if i put the prject on a temp server can i then write a coockie even if 
> > i dont have a domain?
> > under which name will i see it in the  Temporary Internet Files folder?
> > and should i use the above code for a new coockie and for an existing coocike?
> > or shouldi  use somme diffrent code?
> > 
> > thnaks in advance
> > peleg
Date:Sat, 18 Aug 2007 12:08:01 -0700   Author:  

RE: asp.net 2 @ client coockies   
first thnaks alot
but if say i dont work on localhost but on ip with no domain yet,shold i do 
the same?

"Peter Bromberg [C# MVP]" wrote:


> I'd set the path property to "/" and leave off the localhost "domain". See if 
> that helps.
> Peter
> -- 
> Recursion: see Recursion
> site:  http://www.eggheadcafe.com
> unBlog:  http://petesbloggerama.blogspot.com
> BlogMetaFinder:    http://www.blogmetafinder.com
> 
> 
> 
> "pelegk1" wrote:
> 
> > i am trying to use this code:
> > [code]
> >  If (True = Request.Browser.Cookies) Then ' this works!
> > Dim testCookie As New HttpCookie("LastVisited")
> >             testCookie.Values.Add("time is now", DateTime.Now.ToString)
> >             testCookie.Expires = DateTime.Now.AddDays(20)
> >             testCookie.Domain = "localhost"
> >             Response.AppendCookie(testCookie)
> > end if
> > [/code]
> > to save a coockie on a localhost and it isnt working.
> > what am i doing wrong? 
> > what if i put the prject on a temp server can i then write a coockie even if 
> > i dont have a domain?
> > under which name will i see it in the  Temporary Internet Files folder?
> > and should i use the above code for a new coockie and for an existing coocike?
> > or shouldi  use somme diffrent code?
> > 
> > thnaks in advance
> > peleg
Date:Sat, 18 Aug 2007 12:08:01 -0700   Author:  

Re: asp.net 2 @ client coockies   
re:
!> if say i dont work on localhost but on ip with no domain yet,shold i do the same?

Yes. Setting the path to "/" will do it for you.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"pelegk1"  wrote in message 
news:A3B9D099-5970-4D3F-B087-F1881D676B11@microsoft.com...

> first thnaks alot
> but if say i dont work on localhost but on ip with no domain yet,shold i do
> the same?
>
> "Peter Bromberg [C# MVP]" wrote:
>
>> I'd set the path property to "/" and leave off the localhost "domain". See if
>> that helps.
>> Peter
>> -- 
>> Recursion: see Recursion
>> site:  http://www.eggheadcafe.com
>> unBlog:  http://petesbloggerama.blogspot.com
>> BlogMetaFinder:    http://www.blogmetafinder.com
>>
>>
>>
>> "pelegk1" wrote:
>>
>> > i am trying to use this code:
>> > [code]
>> >  If (True = Request.Browser.Cookies) Then ' this works!
>> > Dim testCookie As New HttpCookie("LastVisited")
>> >             testCookie.Values.Add("time is now", DateTime.Now.ToString)
>> >             testCookie.Expires = DateTime.Now.AddDays(20)
>> >             testCookie.Domain = "localhost"
>> >             Response.AppendCookie(testCookie)
>> > end if
>> > [/code]
>> > to save a coockie on a localhost and it isnt working.
>> > what am i doing wrong?
>> > what if i put the prject on a temp server can i then write a coockie even if
>> > i dont have a domain?
>> > under which name will i see it in the  Temporary Internet Files folder?
>> > and should i use the above code for a new coockie and for an existing coocike?
>> > or shouldi  use somme diffrent code?
>> >
>> > thnaks in advance
>> > peleg 
Date:Sat, 18 Aug 2007 15:54:42 -0400   Author:  

Re: asp.net 2 @ client coockies   
great thnaks alot!

"Juan T. Llibre" wrote:


> re:
> !> if say i dont work on localhost but on ip with no domain yet,shold i do the same?
> 
> Yes. Setting the path to "/" will do it for you.
> 
> 
> 
> 
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaƱol : http://asp.net.do/foros/
> ======================================
> "pelegk1"  wrote in message 
> news:A3B9D099-5970-4D3F-B087-F1881D676B11@microsoft.com...
> > first thnaks alot
> > but if say i dont work on localhost but on ip with no domain yet,shold i do
> > the same?
> >
> > "Peter Bromberg [C# MVP]" wrote:
> >
> >> I'd set the path property to "/" and leave off the localhost "domain". See if
> >> that helps.
> >> Peter
> >> -- 
> >> Recursion: see Recursion
> >> site:  http://www.eggheadcafe.com
> >> unBlog:  http://petesbloggerama.blogspot.com
> >> BlogMetaFinder:    http://www.blogmetafinder.com
> >>
> >>
> >>
> >> "pelegk1" wrote:
> >>
> >> > i am trying to use this code:
> >> > [code]
> >> >  If (True = Request.Browser.Cookies) Then ' this works!
> >> > Dim testCookie As New HttpCookie("LastVisited")
> >> >             testCookie.Values.Add("time is now", DateTime.Now.ToString)
> >> >             testCookie.Expires = DateTime.Now.AddDays(20)
> >> >             testCookie.Domain = "localhost"
> >> >             Response.AppendCookie(testCookie)
> >> > end if
> >> > [/code]
> >> > to save a coockie on a localhost and it isnt working.
> >> > what am i doing wrong?
> >> > what if i put the prject on a temp server can i then write a coockie even if
> >> > i dont have a domain?
> >> > under which name will i see it in the  Temporary Internet Files folder?
> >> > and should i use the above code for a new coockie and for an existing coocike?
> >> > or shouldi  use somme diffrent code?
> >> >
> >> > thnaks in advance
> >> > peleg 
> 
> 
> 
Date:Sat, 18 Aug 2007 13:20:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us