Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2018, 01:13 PM
Authorized User
 
Join Date: Sep 2004
Posts: 68
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Truncated field when copying Tachyophan Access VBA 3 November 16th, 2006 08:23 AM
Querying against truncated dates John Pennington SQL Server 2000 3 October 16th, 2006 11:55 PM
Long Name truncated with SendMail echovue Excel VBA 0 May 12th, 2005 03:05 PM
Truncated Form Values. conscience Pro PHP 1 December 27th, 2004 02:53 PM
need to be truncated PatrickH SQL Server ASP 2 April 15th, 2004 10:48 AM





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