Re: should i validate cookies values?
From: Egbert Nierop \(MVP for IIS\) (egbert_nierop_at_nospam.invalid)
Date: 07/13/04
- Next message: Frank Madonna: "IIS 6.0 and VBD and 404 error"
- Previous message: Robert: "Re: ASP.NET Win2K and WinXP login problems"
- In reply to: Hernán Castelo: "should i validate cookies values?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Jul 2004 22:09:38 +0200
Should you validate any user input? Yes, cookie values are sent back by the
browser and could possibly be null or tampered with. Not so dangerous but if
your software assumes that it contains a valid number you can have a
software exception
(sample C#)
int myCookievalue = int.Parse(Request.Cookies["blah"]); //wrong
-- compatible web farm Session replacement for Asp and Asp.Net http://www.nieropwebconsult.nl/asp_session_manager.htm "Hernán Castelo" <hcastelo@cedi.frba.utn.edu.ar> wrote in message news:OLHlgIQaEHA.3996@TK2MSFTNGP12.phx.gbl... hi should i validate cookies values? thanks -- atte, Hernán Castelo SGA - UTN - FRBA
- Next message: Frank Madonna: "IIS 6.0 and VBD and 404 error"
- Previous message: Robert: "Re: ASP.NET Win2K and WinXP login problems"
- In reply to: Hernán Castelo: "should i validate cookies values?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|