[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Development & Programming  |  Topic: login
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: login  (Read 964 times)
0 Members and 1 Guest are viewing this topic.
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« on: June 12, 2007, 08:05:17 AM »

hi

i have writtem a login script which has
1) a login page consisting of username and password
after the username nad password is validated the control should be taken to an index page having some options.

i  am facing problem to take control to the index page from login page.after all the things are valiadated how do i take the control to the next page.i used header( ) function but it was giving an error.
and also i wanted to test the case sensitivity of the username.
 
can anyone help?
Logged
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« Reply #1 on: June 13, 2007, 12:00:22 AM »

the script is written in php.i m workin in php and mySQL
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #2 on: June 15, 2007, 03:38:56 AM »

atm I am not into PHP at all but I am in the process to learn.. !!
btw you can test case sensitivity using regular expression or if not typical one then using some string functions.. !
Logged
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« Reply #3 on: June 15, 2007, 09:21:33 AM »

Can you tell me of ny source of help to this problem?
thanks
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #4 on: June 15, 2007, 01:13:05 PM »

You can use ereg to test username and it is really powerful,
here is more info:
http://in2.php.net/manual/en/function.ereg.php

About header function giving error.. are you using "exit" after calling header function ?
Logged
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« Reply #5 on: June 18, 2007, 12:11:59 AM »

no i haven't use exit
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #6 on: June 18, 2007, 02:47:55 AM »

if you are using header() then right after using header use exit..

example:
Code:
header(<something something>);
exit;
Logged
carobee
Linux Noob !
*
Offline Offline

Posts: 22


View Profile
« Reply #7 on: June 18, 2007, 03:24:39 AM »

i will try out
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
ssh login withRSA key ! General Networking Support in Linux ajay 0 905 Last post July 11, 2004, 07:36:43 AM
by ajay
Remote login as locally Linux Servers Support ilias 3 539 Last post March 05, 2006, 02:17:47 PM
by Ricky
login problem in webmail Linux Servers Support johnbritto 4 550 Last post May 15, 2006, 01:03:18 PM
by Ricky
Remote login via dialup service General Networking Support in Linux shipoin_97 2 554 Last post June 17, 2006, 11:17:17 PM
by shipoin_97
problem with cvs login Miscellaneous jagsrao 0 339 Last post March 13, 2007, 05:09:29 AM
by jagsrao
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 11:11:16 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6227
Latest: karunadct
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 13
Total: 13
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc