Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 6th, 2006, 12:33 PM
Authorized User
Join Date: Jan 2006
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Storing cookies on the client machine

i am writing a code which creates a cookie. when run on the server machine the cookie is been created & also expires after the specified time limit.
But when the same program is run from the client machine, the cookie is not saved.
Can some1 help me with this.
  #2 (permalink)  
Old July 6th, 2006, 05:07 PM
Authorized User
Join Date: Jun 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

This isn't a CS bug. ASP.NET 2.0 requires additional changes.

Set a MachineKey in your web.config (not only in the AppSettings).

Also, in ASP.NET 2.0 the RolesProvider Timeout is honored (in the past it was ignored on 1.1). Open your web.config and edit the RolesProvider section for the Timeout.

Again, you'll also need to properly setup your <MachineKey />:


In section of the web.config change the Timeout from 90 to 525600 (1 year).


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading COM component on client machine hendyhanusin ASP.NET 2.0 Professional 4 June 20th, 2011 02:26 AM
storing .xml on client's machine software_developer_kk Classic ASP XML 0 May 4th, 2005 02:19 AM
storing an xml file on to my local machine ruchilalla J2EE 0 April 28th, 2005 01:33 AM
writing to client machine - PLEASE HELP Toran Classic ASP Databases 2 April 2nd, 2005 03:50 PM
storing data client side Anjali VBScript 3 September 3rd, 2004 05:24 PM

All times are GMT -4. The time now is 05:39 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.