p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Professional (http://p2p.wrox.com/forumdisplay.php?f=63)
-   -   Cookie Value is Truncated (http://p2p.wrox.com/showthread.php?t=99860)

srotondo April 26th, 2018 01:13 PM

Cookie Value is Truncated
I'm having a problem where e-mail addresses passed as a username via a cookie are being truncated. The details are below.

I've been using cookies on my website for ten years and never had a problem. I would use them to retrieve usernames for single sign-on purposes. My programming language is classic asp. The typical username would be something like fsmith or rjones.

However, I started using e-mail addresses for usernames and that's when the problems started. Most of the e-mail addresses were returned correctly by the cookie but for some reason, the cookie would truncate one e-mail address/username in particular. Instead of returning salvatore@gmail.com, the cookie would return salvatore@gmail (for example)

I know this problem occurred before I de-crypted the cookie because I used the following classic asp code to determine the length of the cookie: len(request.Cookies("CSHintranetCookie")("u"))

The code above would return a value of 15 for salvatore@gmail indicating that the cookie itself had somehow been truncated.

Does anyone have any thoughts as to why the cookie would truncate an e-mail address?

Thank you.

All times are GMT -4. The time now is 07:05 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.