Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cgi-script

Posted on 2001-08-29
8
Medium Priority
?
284 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
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
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 160 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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

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…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

721 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