473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to autologin?

3
If I have a login page, and i want to leave the others to access without writing username and password how to do it?

There is a form and I can do it with input type hidden, but in "view source page" the others can see the username and password.

How to implements it?
Aug 2 '07 #1
4 1505
nathj
938 Expert 512MB
If I have a login page, and i want to leave the others to access without writing username and password how to do it?

There is a form and I can do it with input type hidden, but in "view source page" the others can see the username and password.

How to implements it?
If I were you I would take a look at the $_SESSION and $_COOKIE in php. These should help you.

Have a look at this tutorial. I've never used it but it seems okay to me.

Cheers
nathj
Aug 2 '07 #2
jx2
228 100+
If I were you I would take a look at the $_SESSION and $_COOKIE in php. These should help you.
DONT USE COOKIE for that purose - cookies can be seen in internet files

use session!!

i hope tht helped
jx2
Aug 2 '07 #3
nathj
938 Expert 512MB
DONT USE COOKIE for that purose - cookies can be seen in internet files

use session!!

i hope tht helped
jx2
I personally agree and never use cookies, however, I thought I would present both options, for the sake of completeness

nathj
Aug 2 '07 #4
kovik
1,044 Expert 1GB
DONT USE COOKIE for that purose - cookies can be seen in internet files

use session!!
If he's actually after an auto-login (though the post sounds very confusing, so he may be after something else), then a session wouldn't work at all. A cookie would need to be used. Any auto-login (i.e. these forums) are done through a cookie, because sessions don't last indefinitely.
Aug 2 '07 #5

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

Similar topics

0
by: Giorgio | last post by:
Hi I have Win 2000 and PHP server in my PC I'm trying to run SlimBrowser (sbrowser.exe) from a local PHP page. I have used exec() system(). I managed to run SlimBrowser with .exe and .bat...
2
by: Snyke | last post by:
Well the title might be a bit misleading: Some time ago I was trying to reverse engineer the authentification system in phpBB because I was building a community site in which there was a phpBB...
7
by: FamB | last post by:
I have the following code: $expireTime = 60*60*24*364; // 365 days session_set_cookie_params($expireTime); // seconds session_start(); My problem is, that my PHPSESSID expires before my...
6
by: FamB | last post by:
I have this PHP code (PHP5): if($autologin == "on") session_set_cookie_params(60*60*24*365); // 365 days else session_set_cookie_params(0); // when browser closes session_start(); In my...
3
by: PHP | last post by:
I have a login page, that have this code: It is called from a page with a form and 3 inputs, email, password and autologin. <?PHP mysql_connect("localhost", "user", "psw");...
5
nilayanand
by: nilayanand | last post by:
My page has the link to take user directly to report page of other site. Clicking report link ask user (in browser authentication dialog box) to submit user, password, before showing report page. Our...
2
by: Pet Farrari | last post by:
HI, I want to use a perl script to add email folder, but the script I wrote doesnt seem right. Here is the code: line 1: open(CYRADMIN, "| /usr/local/bin/cyradm --user testuser -s...
14
victorduwon
by: victorduwon | last post by:
Hi guys and gals, I am using javascript to autologin to my google analytics account via a hyperlink. This is what the text looks like this <?xml version="1.0" encoding="utf-8"?>...
5
by: vashafnas | last post by:
Hello all, I have an autologin feature in the login form.So if autologin selected once,it should work using cookies then.How to use it.Please help???
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.