Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 26th, 2018, 01:13 PM
Authorized User
Points: 373, Level: 6
Points: 373, Level: 6 Points: 373, Level: 6 Points: 373, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2004
Location: , , .
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Truncated field when copying Tachyophan Access VBA 3 November 16th, 2006 07: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 01:53 PM
need to be truncated PatrickH SQL Server ASP 2 April 15th, 2004 10:48 AM



All times are GMT -4. The time now is 09:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.