CodeWidgets.com: Online Source Code Library: C#, ASP, ASP.NET, VB, VB.NET, VB Script, Microsoft Access, Excel, JavaScript, J Script, XML, VBScript, Website Design, DevExpress Components, Reporting, Application and Website Templates.

Widget #CS0068

Using Cookies to persist user data (ASP)

Free

Adding a cookie to the users browser.

'pass the user name to a string variable

strUserName = "Joe Blow"

'pass a date value to the expiry variable IE: tomorrow

dteExpires = Date() + 1

'save the cookie to the users machine

Response.Cookies( "UserName" ) = strUserName

Response.Cookies( "UserName" ).Expires = dteExpires

Reading a cookie from the users browser

strUserName = Request.Cookies(  "UserName" )

 

Last Updated: 4/27/2018


Related Widgets 
Price 
# 
CS0040 Add Sounds to button events. ASP.NET$0.00Add To Cart
CS0003 DateRange.NET Class (C#.Net)$10.00Add To Cart
CS0006 ShoppingCart.NET Class (C#.Net)$10.00Add To Cart
CS0007 ShoppingCart.NET Class (Visual Basic.Net)$10.00Add To Cart
CS0116 Sort and Move rows up and down in a databound GridView (ASP.NET, C#.Net)$15.00Add To Cart

Recently Viewed Widgets 
Price 
# 
No data to display

Collapse/Expand
Format

HTML Article

Online Document


Collapse/Expand
License

License

PromoWare

Single Developer Licence.
Re-Distribution Permitted only as part of a compiled Application.This source code is provided to you "as is" without warranty.
CLICK HERE FOR TERMS OF USE
Copyright 2000-2018 CodeWidgets.com and Comrie Software Solutions


This website uses Cookies to store User information and Shopping Cart Items for the duration of your visit to CodeWidgets.com.

No Credit Card or Financial information is stored by CodeWidgets.com. Click Here For Our Complete Privacy Policy and Terms of Use.

I Understand