Tag Archives: Access cookies

How to access cookies set at the client side

Share Your Love

Class javax.servlet.http.cookies can be used to access cookies on the client side. The following code demonstrates this technique. It checks the existence of cookie MyCookie. boolean dcookiefound = false; Cookie[] cookies = request.getCookies(); for(int nIndex=0;nIndex < cookies.length;nIndex++) { if(cookies[nIndex].getName().equals(“MyCookie”)) { … Continue reading

Posted in Blogging, CGI and Perl hosting, cPanel Help, Dedicated Server Hosting, Email Hosting, Internet Security, Linux Reseller hosting, Linux Web Hosting, Managed Dedicated Server, MySQL Hosting and issues, Php Web Hosting, Plesk Web Hosting, Semi-Dedicated Hosting, SEO Optimization, UK Datacenter and Network, UK Domain name registration, UK Reseller Webhosting, UK Web Hosting, Uncategorized, Web Design, Windows Reseller Hosting, Windows Web Hosting | Tagged | Leave a comment