LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2001, 04:37 PM   #1
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
Exclamation


Hey,
I have a webpage. I did not transfer it on my own server yet but i am thinking about transfering it soon. I have a couple of problems. I want people to sign up for an account and get a sign in name. They should be able to sign in and stay signed in for a couple of hours and if they are idle for 2 hours they should be disconnected from the server automatically. I dont know how to set it up that way. Any how-to's is appreciated.
 
Old 05-21-2001, 05:14 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I am not really good at programming but I am sure there are many ways to do this with some sort of scripting language and cookies maybe involved. This question should more like be in the programming forum. You could probably do this with Perl, maybe Javascript or even VBscript and others.
 
Old 05-22-2001, 06:46 AM   #3
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
thanks

I know a little about java but i dont know anything about Perl or VB. I was wondering if there are any free programs i could borrow. And my question is not really about how to write the program, i dont know how and where to put the code in linux and be secure that i wont be hacked. trickykid do you know any websites or books that would help me with it? Thanks again for replying.
 
Old 05-22-2001, 07:00 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
i guess something like that would be included in a separate folder with limited access rights to it. I know some when setting up their web sites have like a private directory.
Not sure of any sites though, if I come across any, I will let you know. You could check out the main sites though, like http://www.perl.org or http://www.javascript.com .
 
Old 05-25-2001, 01:51 PM   #5
jrockey
LQ Newbie
 
Registered: May 2001
Posts: 17

Rep: Reputation: 0
When you say "account" do you mean an account on your web site or an account on your Linux server? If you mean on your Linux server, I don't know how to arrange to kick people off after a certain time, but I am sure there is one.

If you mean on your web site - i.e. "sign in" like people sign in to Hotmail - then the way to do it is via "session management". Java provides session management as part of the servlet API (check out documentation on the Sun site). Behind the scenes, it's managed using either cookies, which you can set to expire after two hours, or in a more complicated manner by creating a unique ID when the user signs in and recording it a database and passing the ID as a URL parameter for every request the user makes. Every time the user makes a request you reset the time on the database entry.

The Java classes make all this quite easy.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Hard question up for anybody Aki96 Linux - Newbie 8 07-27-2005 10:08 AM
manual mandrake shut down hard on hard drive randrake Mandriva 2 03-15-2004 04:01 PM
hard question? Goma_2 Linux - Networking 3 10-07-2003 06:17 AM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration