On 08/07/12 14:40, Rajeev Prasad wrote:
I am using CGI.pm on my website, but I generate my pages using TT (template Toolkit). I have few questions: 0. how to have a session variable (not a session cookie)? If I do not want to use cookie, do i have to store session data in a temp file on server and check it with each page load? 1. How do I pass a cookie to the page I am displaying using tt ? is following ok? print "Content-type: text/html\n\n"; print $q->header(-cookie=>$mycookie); ...further code to generate page using tt 2. another related issue is: How do I send a redirect URL to the browser client, based on some conditions in the logic?
http://www.wiley.com/legacy/compbooks/stein/ http://shop.oreilly.com/product/9781565924192.do http://shop.oreilly.com/product/9780596004767.do HTH, David -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/