Solved

Cgi-script

Posted on 2001-08-29
8
278 Views
Last Modified: 2013-12-25
How to use session in CGI scripting?
In ASP we can embed ASP code in HTML tags. How the same thing can be achieved in CGI?
In ASP, there is facility of redirecting from one file to other. How this can be done in CGI? Is there
any inbuild Object.

Any suggestions plzzzzz
0
Comment
Question by:saritalodhi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 8

Expert Comment

by:mnashadka
ID: 6436344
The big question is - what language are you doing your CGI in?  Using cookies is very common (with the Set-Cookie header to set it and checking HTTP_COOKIE to retrieve it).  Different languages and web servers use sessions differently, so I don't know how to answer that question.
0
 
LVL 8

Expert Comment

by:bebonham
ID: 6436550
typically you write hidden tags to embed your variables in the html page.

as mnashadka says about headers, they will also be useful for your redirects.

Bob
0
 
LVL 6

Expert Comment

by:andreif
ID: 6450191
Embedded Perl (embperl) allows to insert Perl code into HTML page.

What kind of redirect you need? Do you want redirect client's browser or just caal another script?

For sessions you can use Apache::Session module
0
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 
LVL 1

Expert Comment

by:kirthir
ID: 6468045
There are 3 different methods of maintaining session using CGI
1)environment variables
2)hidden fields
3)storing in a file
4)cookies

Let me know if you want more information on any of the above mentioned topics

0
 
LVL 1

Expert Comment

by:kirthir
ID: 6468063
Redirecting from one file to other, i think u can think of "server side includes"

Server side includes are directives which we can place into html documents to execute other programs or output such data as environment variables and file statistics.

Let me know if you want any further information on this.

0
 
LVL 16

Expert Comment

by:maneshr
ID: 6654393
saritalodhi,

Did you get the solution you were looking for?

                     What solution, if any, did you use?

                     If you have already found a solution, please go ahead and close this question.

                     Thanks,
0
 
LVL 16

Accepted Solution

by:
maneshr earned 40 total points
ID: 6697067
saritalodhi,

Did you get the solution you were looking for?

What solution, if any, did you use?

If you have already found a solution, please go ahead and close this question.

Thanks,
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6699272
Finalized, no response to follow up requests, assume resolved with this help given.
Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

628 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