Solved

Cgi-script

Posted on 2001-08-29
8
269 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
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

734 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