Re: Securing AJAX requests with PHP?

From: Date: Fri, 17 Oct 2008 19:32:32 +0000
Subject: Re: Securing AJAX requests with PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282056@lists.php.net to get a copy of this message
Jay Moore schreef: > I realize this isn't really about PHP, but I was hoping maybe someone > had a way to make AJAX a little bit more secure using PHP. > > I was thinking of making my AJAX calls also pass the current session id, the browser should still send the session cookie for async requests. so you get this info for free. using one-time tokens isn't going to hurt at all (well a few extra CPU cycles, but whose counting :-)) > and have my PHP script check to make sure it's a valid id, but I'm open > to other ideas. > > Do you guys use PHP to make AJAX calls a little bit more secure? What > /do/ you use? > > I hope this isn't too off-topic. > > Thanks, > Jay >

« previous php.general (#282056) next »