User Profile
Collapse
-
I tried but of no use....... -
The solution you have suggested (to add session_start() in index.php) is working in IE but not in mozilla. In mozilla firefox the problem still persists....Leave a comment:
-
Sessions are working fine in Internet Explorer. But not in Mozilla Firefox . Can anyone tell me why is that and what should I do for that to work?Leave a comment:
-
I tried this. Its working. Thanks. It helped me continue two of my stucked projects. Thank you sooo much...Leave a comment:
-
Yes. It is returning username correctly. In loginpage
isset($_SESSION['USERNAME']) is returning true. But echo $_SESSION['USERNAME'] is not printing anything.Leave a comment:
-
Here is the code:
loginpage.php
Code:<?php session_start(); require('config.php'); if($_POST['submit']) { $username = $_POST['name']; $password = $_POST['password']; $mysql = mysql_connect($dbhost,$dbuser,$dbpassword); mysql_select_db($dbdatabase,$mysql); $loginsql = "select * from logins where username='" . $username ."' and password='".
Leave a comment:
-
Sessions not working in subsequent pages
Hi,
I am developing a website. In Login form , on successful login of user, i had created session variable $_SESSION['username'] and redirected to second page. In second page when i checked , isset($_SESION['username']) is returning false.
This is the first website I am developing. Do I have to change any settings in php.ini for sessions to work? -
This is the first website I am developing on my machine. Do I have make any changes to php.ini file?Leave a comment:
-
Hi,
Even I am having similar problem.
In login page i had set session variables. But after page is redirected throgh header() to another page, sessions doesnt work any more.
isset($_SESSION['username']) is returning false.
Please help me.
Thankyou.Leave a comment:
No activity results to display
Show More
Leave a comment: