Solved

Cookies

Posted on 2000-03-09
6
225 Views
Last Modified: 2013-12-25
I would like to learn how to write Cookies, in order to make a web site like EE, (no need to login in everytime, and my information can be shown in the every web pages).
any one can provide example (source code) to me?
or please provide me some reference web sites.
Thanks.

mwhuen
0
Comment
Question by:mwhuen
6 Comments
 
LVL 1

Expert Comment

by:chaduka
ID: 2601718
It really depends on what language you intend to use in your CGI programming.

An excellent resource on Perl cookies is on http://www.bewley.net/perl/cookie-test.html.
Also, check http://www.cookiecentral.com/

Have fun!
0
 
LVL 10

Expert Comment

by:makerp
ID: 2602692
activestates help is spot on for this sort of thing. even if your unix. if you have access to win then download it from the web.. its free www.activestate.com

if only for the lovely html help that you get its worth it
0
 

Author Comment

by:mwhuen
ID: 2609832
I use Perl for cgi programming.

what method should I use to implement my program?
use Cookies? use hidden values? or what else?

should I change to ASP sessions?
or change to PHP?

mwhuen
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 84

Expert Comment

by:ozo
ID: 2609916
0
 

Author Comment

by:mwhuen
ID: 2612289
are sessions better than cookies?
0
 
LVL 1

Accepted Solution

by:
stephenblade earned 20 total points
ID: 2613937
The easiest and best way to place cookies is to check out Matt's Cookie.Lib at http://www.worldwidemart.com/scripts/cookielib.shtml


It can also set session cookies.. just by not setting the expiration...

As far as the differance between session and normal.
Regular cookies expire opoun the date you set them to expire, Session cookies last until the browser is shut down or your script removes them..

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to dynamically set the form action using jQuery.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question