Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 27th, 2000, 07:03 AM
fernando_ostanelli fernando_ostanelli is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 fernando_ostanelli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi There,

First of all: sorry my English, I'm from Brazil and my English is very poor !
But I'll try to be clear...
I'm using Apache Server.
I need to implement (in my Perl scrips) user authentication/session control for Apache.
Basicaly, what I need is: once validated the user login in the Database (Oracle) by a Perl script,
I need to control the session, that means: if it didn't expire (in a period of time), if it is the same
session since user login, if the user is using the same host where the login was done.
If the session is invalid a new user login will be required.
Note: Dont't need to store session information in Database, just interact with Apache Server
to controll the sessions.
Is it possible ? Do anybody have done something like this ? (if it's possible, can send me the
scripts or some example ?) Or just have an idea of whow it must be done ?

I'm afraid I'm not clear enough !!!

By the way, thank's a lot for reading this and for your help

Regards,


Fernando
fernando@multiway.com.br
fernando_ostanelli@multiway.com
id yahoo: ostanelli

Reply With Quote
  #2  
Old November 27th, 2000, 01:08 PM
marsha25 marsha25 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 0 marsha25 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
you might try setting a COOKIE with authentication code and expiration time that you want. then have your cgi check the cookie when it is run to see if the cookie has expired... someone else might have a better solution...

Reply With Quote
  #3  
Old November 28th, 2000, 12:09 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Cookies are fine, but they are not reliable. However, if my memory serves me correctly, there is a module for Perl that you can get from CPAN ( http://www.cpan.org/ ) that implements something like sessions. I think its name is Apache::Sessions. Try to find something like that on CPAN, it may solve your problems.

If you don't, cookies always remain as an option...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > CONTROLLING SESSIONS IN APACHE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway