navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

SpookyLogin: Can't write cookie correctly

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> SpookyLogin: Can't write cookie correctly
Page: [1]
 
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
SpookyLogin: Can't write cookie correctly - 4/4/2001 14:02:00   
Hi Again Spooky,

I'm frequenting this forum quite a bit lately since I'm still a beginner with ASP. Also, I would like to comment on what a tremendous help Spooky Login has been for me. I feel it is worth the money just to use it for the programming examples! However, I do have 1 question about the cookies:

Where are the routines to form the cookie string located? ..is it "Sub setCookie" in a_general.asp? If so, Is there somewhere else affecting it, 'cause I'm not building the whole string, just part of it. My SetCookie section is as follows:

Sub SetCookie
Response.Cookies(COOKIE_NAME).expires = #1/1/2010#
If Username <> "" then Response.Cookies(COOKIE_NAME)("T1aUs") = Username
If T2 <> "" then Response.Cookies(COOKIE_NAME)("T2aPd") = T2
If x_firstname <> "" then Response.Cookies(COOKIE_NAME)("FirstName") = x_firstname
If x_lastname <> "" then Response.Cookies(COOKIE_NAME)("LastName") = x_lastname
If x_email <> "" then Response.Cookies(COOKIE_NAME)("xEmail")= x_email
If x_address <> "" then Response.Cookies(COOKIE_NAME)("xaddress") = x_address
If x_city <> "" then Response.Cookies(COOKIE_NAME)("xCity") = x_city
If x_zip <> "" then Response.Cookies(COOKIE_NAME)("xZip") = x_zip
If x_state <> "" then Response.Cookies(COOKIE_NAME)("xState") = x_state
If aps_uid <> "" then Response.Cookies(COOKIE_NAME)("aps_uid") = aps_uid
If isManager <> "" then Response.Cookies(COOKIE_NAME)("isManager") = isManager
If dept <> "" then Response.Cookies(COOKIE_NAME)("dept") = dept
End Sub

It does seem to write a cookie, just not all of it. It writes FIRSTNAME, XEMAIL, LASTNAME, T2APD, and T1AUS. Nothing else discernable. I'm kinda' thinking it's not writing that line but some other default cookie.

If that (section of a_general.asp) is not where it is done, where then specifically is the code located that builds the cookie?

Any and all help is greatly appreciated...

Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: SpookyLogin: Can't write cookie correctly - 4/4/2001 18:16:00   
It will fill the values, but not from login.asp. They all get filled at registration

Using login.asp only fills the fields you mention as I dont wish to access all the fields each time someone logs in, it puts too much pressure on Access.

But you have the correct page and function there.
If the variables are not null, then they should be filled.

Theres a page in /examples you can use to display values, if you havent seen it already?


(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: SpookyLogin: Can't write cookie correctly - 4/5/2001 14:22:00   
Thanks for the help. Yes, I have used the show_values.asp file and the values in question don't show up, only your 4 'defaults'. I'm attempting to build an include file myself to accomadate the new cookie info. I've succeeded in making the file access the .mdb file and put the asp code on a diet. I'm also attempting to use your method of 'binary coding' you used inside Spooky_login (unless of course you've patened it).

Can you point me to a good resource / tutorial on actually writing the cookie?? I've made a few half-hearted attempts, but all I get is blank cookies...


(in reply to rdouglass)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: SpookyLogin: Can't write cookie correctly - 4/5/2001 14:35:00   
The next version (which you should be able to download this weekend) will support writing of all cookies and a few other cool tricks

It all depends on getting my PC fixed and running in time

www.cookiecentral.com, www.4guysfromrolla.com and www.learnasp.com all have good cookie sections

------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> SpookyLogin: Can't write cookie correctly
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts