Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Accessing cookies from DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nathan_blakley@hotmail.com - 08 Feb 2008 07:04 GMT
Hi,
I am not able to read or write cookies from DLLs both locally and on
Godaddy's web hosting site. I have ASP.NET 2 set up in both locations.
There must be a trick. My code looks as follows:

return (HttpContext.Current.Request.Cookies[m_strCookieName] != null);

I have unchecked the "Allow Unsafe Code" box in VS.

Many thanks
Nathan
George Ter-Saakov - 08 Feb 2008 12:36 GMT
To reqad a cookie you use Request.Cookies...
to write a cookie you use Response.Cookies....
I see code yo try to read Cookie but do not see code to write Cookie..

George.

> Hi,
> I am not able to read or write cookies from DLLs both locally and on
[quoted text clipped - 7 lines]
> Many thanks
> Nathan
nathan_blakley@hotmail.com - 09 Feb 2008 15:26 GMT
Thank you, George. Yes, I do use the request and response objects as
you say. I apologize for not saying so.
The dll resides in the web site's bin directory and can both read and
write to a directory (after I set permissions). Cannot read or write a
cookie though.
Hate to have to rely on IP addresses but am considering it.
Nathan

> To reqad a cookie you use Request.Cookies...
> to write a cookie you use Response.Cookies....
[quoted text clipped - 17 lines]
> > Many thanks
> > Nathan
nathan_blakley@hotmail.com - 10 Feb 2008 15:57 GMT
I should have mentioned, this dll contains a CompositeControl.
Nathan

On Feb 9, 7:26 am, nathan_blak...@hotmail.com wrote:
> Thank you, George. Yes, I do use the request and response objects as
> you say. I apologize for not saying so.
[quoted text clipped - 25 lines]
> > > Many thanks
> > > Nathan

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.