Cookies and Spooky login (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


hzarabet -> Cookies and Spooky login (3/20/2001 20:06:00)

I am new to using cookies for anything. If I set cookies to on with Spooky login and if the user deletes his cookies, will the cookie get reinstalled when the user tries to login again? Will the users login service be uninterupted?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada





Vince from Spain -> RE: Cookies and Spooky login (3/20/2001 23:41:00)

Hi hzarabet,
yeah sure, the cookies will get reinstalled if they get deleted for any reason. I am sure the users login service will be flawless.

Vince

------------------
Internet Business Solutions S.L.(Spain)





Spooky -> RE: Cookies and Spooky login (3/20/2001 14:07:00)

Thanks Vince
No, the cookies dont get reloaded unless the user chooses to save info via cookie.

All cookies get saved by default when registering, but the user can select to keep them or not.
There are of course some paranoid people aout there.....

Dont add the link to login to allow clearing of cookies if you dont want to give them the option.
Login only saves user/first/last/expiry where register saves location detail as well.





hzarabet -> RE: Cookies and Spooky login (3/20/2001 15:54:00)

So assuming I do not provide the option, users cannot delete their cookies. But even if they deleted all of their cookies from their temp internet files, the cookie would reinstall when they went ot try to log in. Am I understanding this correctly?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada





Vince from Spain -> RE: Cookies and Spooky login (3/20/2001 16:34:00)

Ooooops.
"We all make mistakes" said the Dalek hopping off the dustbin . . .
I'll check next time before opening my big gob

Vince

------------------
Internet Business Solutions S.L.(Spain)





hzarabet -> RE: Cookies and Spooky login (3/20/2001 16:36:00)

The only way to insure never making a mistake is never to reply. Even your mistakes are helpful.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada





Spooky -> RE: Cookies and Spooky login (3/20/2001 17:09:00)

No, cookies are only saved when they ask to do so.
When they register, it happens by default.
After that, its up to the user (or the coder) to change that!




hzarabet -> RE: Cookies and Spooky login (3/20/2001 17:20:00)

So, (this may be a dumb question), if a person deletes their cookies, I realize that they can still log on to Spooky login by typing in their password instead of relying on the deleted cookie. But, short of re-registering, how CAN they get their cookie back for Spooky login?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada





Spooky -> RE: Cookies and Spooky login (3/20/2001 17:26:00)

By enabling the "save details" link?

They dont get their FULL details, as that would mean opening every row in the database.
As its Access, I dont like doing that for every login.
Whatever happens, the user will always find a way to delete their cookies.
I make the assumption that you save cookies at registration, and let the user decide after.
What cookies do you need / are you worried about?





hzarabet -> RE: Cookies and Spooky login (3/20/2001 17:46:00)

Good point about letting the user decide (ie, deal with it) after THEY choose to delete.

I can't remember seeing the "save details" link. I will look for that.

I am using SQL7 if that makes a difference.

As for what am I worried about....when it comes to my site I take the worst possible thing that could happen, multiply by 3, and that's what I'm worried about

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada





hzarabet -> RE: Cookies and Spooky login (3/20/2001 17:57:00)

Now with the cookie issue behind us, what is the best way to have a user login and pull up a database queried off of his user name.Something like:

http://www.mydomain.com/login.asp?Redirect=databasepage.asp?user=<%=FP_Fi eldVal(fp_rs,"User")%>

Would this bring up a database only for the user who logged in?

------------------http://www.Signingshotline.comlists EVERY upcoming athlete autograph appearance in the US and Canada

[This message has been edited by hzarabet (edited 03-20-2001).]

[This message has been edited by hzarabet (edited 03-20-2001).]

[This message has been edited by hzarabet (edited 03-20-2001).]





Spooky -> RE: Cookies and Spooky login (3/20/2001 19:13:00)

You wouldnt add it to the login string, you would just query on the page:

select * from database where Username='"&Session("Username")&"'

The first script on this page would check they are logged in and send them to login.asp.

On return to this page, the where query will be completed

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





hzarabet -> RE: Cookies and Spooky login (3/20/2001 21:16:00)

Hmmmmm....

fp_sQry="SELECT * FROM Users WHERE Username='""&Session(""Username"")&""'"

When I log in with my username I get no records returned.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.2822266