in reply to Re: CGI::Cookie

What problem do you encounter with the code you currently have?

Replies are listed 'Best First'.
Re^3: CGI::Cookie
by ramachandrajr (Novice) on Aug 31, 2015 at 10:37 UTC
    sorry for the late reply first of all ,i started a blog based on perl(never programmed a web back end before), i was planning to use a cookie for holding in all the details of a user loading them from the database like name, b'day ,qualification etc ,such that i can use them in the posts they make so that they don't need to put em in .i was doubting using a variable derived from db data instead of a string,i figured it out anyways that its possible.sorry about all the mess.

      This is an insecure and dangerous approach. Please do not do it. If you have already done it, please redo it or at least notify your users that any data posted, registered with your site is unsafe. See also: Re: Secure Perl Coding Standards.

        Then how am i going to get all the data displayed on pages belonging to user. by the way i set secure=>1 ,you saying may be i should use say a unique id for cookie and get data in every page using that cookie and dbi read?