Solved

Cookies

Posted on 2000-03-09
6
222 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now