Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2006, 12:33 PM
Authorized User
 
Join Date: Jan 2006
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.
 
Old July 6th, 2006, 05:07 PM
Authorized User
 
Join Date: Jun 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 />:

http://msdn.microsoft.com/library/de...keysection.asp


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







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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.