# Perl sessions OR cookie handling OR something else

**URL:** <https://forum.kirupa.com/t/perl-sessions-or-cookie-handling-or-something-else/272021>\
**Category:** programming\
**Created:** [October 1, 2008, 11:00am UTC](https://forum.kirupa.com/t/perl-sessions-or-cookie-handling-or-something-else/272021 "2008-10-01T11:00:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamhere](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Post date:** [October 1, 2008, 11:00am UTC](https://forum.kirupa.com/t/perl-sessions-or-cookie-handling-or-something-else/272021/1 "2008-10-01T11:00:17Z")

</div>

Hi,  
I’m developing a website where some data, input by the user has to be put into a database, based on certain conditions - i.e. when they input their name and the data, if their name is already in the database, then a new line with their name will NOT be created in the database, otherwise it will (this is a MySQL database). For this, when they post the data, a page will be shown to them saying “Same person” or “Not same person”. My question is - how to program this, that is, I would like the data that they’ve posted to be held _on the client side_, and if they click “Not same person”, then that data will be posted along with their name.  
I would like to do this using cookies, which is why I’ve been Googling lots of pages on Perl sessions (which I _think_ does cookie handling), but I’m totally new to all this - could someone help me as to how the data would be held on the client side between two different programs, ie. submit.cgi and notsame.cgi .  
Thanks a lot.
