473,782 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem using CGI::Session

55 New Member
hi all
I am trying to build a user authentication page for my project..i am getting message im the output as u r sessiion id is...... and it will expires on so....so ..time but when iam using that in my page it doesn't work..I know i am commiting errors but i cant found exactly what is that..can somebody help me out to rectify this problem...

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2. print"content-type:text/html\n\n";
  3. use CGI::Session;
  4.  
  5. $session = new CGI::Session();
  6.  
  7. $CGISESSID = $session->id();
  8.  
  9. print $session->header();
  10.  
  11. $session->param('un');
  12.  
  13. my $Username = $session->param('un');
  14.  
  15. $session->clear(["username"]);
  16.  
  17. $session->expire('is_logged_in', '+1m');
  18.  
  19. $session->delete();
  20.  
Jun 13 '07 #1
0 1146

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1541
by: Bernie | last post by:
Hi All, I have a weird problem with using flash on aspx pages. It goes like this: I have some links with query string parameters in the page. The same links appear as regular "a href" and also embeded in a flash button. like the following: <a href="/Products.aspx?level=2&prodID=26">Antibodies</a> in the flash:
2
3197
by: dana lees | last post by:
Hello, I am using session variables in a cs class file. I am inserting a sortedList to a session variable like this: System.Web.HttpContext.Current.Session = EventsSortedList; Later on, when i want to use this value by: EventsSortedList =
6
5168
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick application working. However, when attempting to implement the solution, the AJAX calls weren't updating the screen like the examples were and seemed not to fire until after the long running process had completed. I found the only real...
0
1252
by: saroravi | last post by:
How can we write a cobol program without using session table. how Front end (PB) retrieve the data
5
1555
by: jcage | last post by:
Hello, I have a form that uses a basic passphrase to ensure an employee user is who they say they are. One field uses 'text' as the input type and the other uses 'password'. When a query has been run, a user can click the browser back button and the name is still there intact but the password field is blank. My question is, what would the 'SESSION' code look like that would allow a user to click their back button where the 'userpass'...
1
11622
by: Limno | last post by:
Hi, Suggest me, how to get the value using Session in C#.net. if i enter the value in one webform, it must display in another webform while i open that 2nd webform. But i dont want to redirect automatically. if i open that 2nd webform, it should display. Need immediately, Anyone Please reply me. Limno
0
1436
by: d0353101 | last post by:
I am having login.cgi. user enter id and password. if ok it redirects to main.cgi with user_id as main_page.cgi?user_id=$user_id. main.cgi is having left menu and right part is for doing some action. in all the CGI files including main.cgi I am writing this code before start_html to manage the session: --------------------------------------- my $cgi = CGI->new;
1
1115
by: Cirene | last post by:
My membership portion of my website is pretty simple - only Admin and 2 other roles. I was thinking of using session vars store the login information? Such as... If Session("IsAdmin") then.... ' allow access to the page If they login ok I would just set Session("IsAdmin") = True, etc... Is using Session vars a secure enough way to do it? I know that I will not
8
2919
by: adarshyam | last post by:
hi.. I am new to vb.net i am doing a program using dynamic textboxes which involves two pages .. where values of textboxes in one page must be transfered to to other sex of textboxes in another page, . please help me .. I tried using session variables but its not working.. this s my code.. PAGE 1 Protected Sub Button5_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button5.Click nval2 = TextBox2.Text If...
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.