Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-12-2003, 10:36 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
ASP Cookies Tutorial

Sarlok wrote another ASP tutorial.

http://codenewbie.com/num.php?id=1&page=num&num_id=51

is the syntax correct?
Code:
if num = "" then
      response.cookies("MyCookie") = 1
else
      response.cookies("MyCookie") = num + 1
end if
should there be 2 '='

if num == "" ?? i don't know asp that well, but i was just curious.
sde is offline   Reply With Quote
Old 02-12-2003, 10:01 PM   #2 (permalink)
Sarlok
Registered User
 
Join Date: Feb 2003
Location: Nowhere special
Posts: 10
Sarlok is on a distinguished road
Send a message via ICQ to Sarlok
Heh, no. Basic, is exactly that. BASIC.
No fancy syntaxes or anything. :|
Sarlok is offline   Reply With Quote
Old 02-12-2003, 11:14 PM   #3 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
And if you wanna get really fancy and have them saved:

Code:
if num = "" then
      response.cookies("MyCookie") = 1
      response.cookies("MyCookie").expires = dateadd("m", 2, Date)
else
      response.cookies("MyCookie") = num + 1
      response.cookies("MyCookie").expires = dateadd("m", 2, Date)
end if
__________________
~Ryan

rdove is offline   Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Largest Tutorial in Code Newbie History! sde Code Newbie News 5 04-24-2004 07:19 PM
New Tutorials: ASP Strings, and Visual Studio/VB.NET sde Code Newbie News 0 03-25-2004 06:37 PM
tutorial stats sde Lounge 1 03-20-2004 02:45 PM
New Java and ASP Tutorials sde Code Newbie News 2 03-15-2004 08:02 PM


All times are GMT -8. The time now is 12:57 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting