Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Cookie are not saved as it should
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

chotie
Starting Member

25 Posts

Posted - 02 May 2003 :  09:08:28  Show Profile  Visit chotie's Homepage
Hello!

I am validating users outside snitz by creating
cookies. In someway my cookies are not created
correctly from times to times..

Sometimes it works and sometimes it dont. (I have
no clue what makes the cookie creating work on
some machines and not on some..)
All machines have (accept cookie)..

this is the code that creates the cookie:
--------------------------------------------
Dim snitzUser
snitz00User = "Snitz00User"
Response.Cookies(snitzUser).Path = "/"
Response.Cookies(snitzUser)("Name") = FrmLogin
Response.Cookies(snitzUser)("Pword") = sha256("" & FrmPassword)
Response.Cookies(snitzUser).Expires = dateAdd("d", 30, Now())
--------------------------------------------

I am very grateful for any suggestions that could
lead me in the right direction..


Thank you very much!! :)

Br,
Christian O.
chot@home.se

Edited by - chotie on 02 May 2003 10:02:29

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 May 2003 :  09:31:42  Show Profile
you aren't assigning snitzUser a value, try changing this line:

snitz00User = "Snitz00User"

to:

snitzUser = "Snitz00User"
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 02 May 2003 :  10:00:51  Show Profile  Visit chotie's Homepage
Thank you for your fast reply!! :)

It was a typo... Sorry about that. I am
currently trying it like this:

Response.Cookies("snitz00User").Path = "/"
Response.Cookies("snitz00User")("Name") = UCase(FrmLogin)
Response.Cookies("snitz00User")("Pword") = sha256("" & FrmPassword)
Response.Cookies("snitz00User").Expires = dateAdd("d", 30, Now())

When i run this there are no cookie created at all...

When i login from snitz the cookie are created correctly so
my browser settings are allowing cookies.

Whats left to do? :/

Thanks for helping!!


Br,
Christian O.
chot@home.se

Edited by - chotie on 02 May 2003 10:02:47
Go to Top of Page

chotie
Starting Member

25 Posts

Posted - 02 May 2003 :  10:11:43  Show Profile  Visit chotie's Homepage
I just discovered something here...

If a user are registred with a username that has mixed letters.
That is both kapitals and small letters mixed in the username..

The cookie does not seem to be created then...

In username = Do i have to use letters in any special way to get this
to work?

How do snitz want to recieve username? (Only kapitals??)

Br,
Christian O.
chot@home.se

Edited by - chotie on 02 May 2003 10:20:33
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07