279 Topics
| |
I am new to Laravel. I am now able to register users, log them in. But after login, I don't want to display register and login pages. I want to display logout link. This is easy for me with core php. I want something similar like the one below. <?php … | |
Hello This is a simple php login script with sessions. It connects to mySQL for usernames and passwords. I’m using a variation of the code from [url]http://www.phpportalen.net/wiki/index.php?page=Enkel+Inloggning+med+Mysql+och+sessioner+-+Komplett+kod[/url] (index.php is the relevant part) Here is my code (my script is called login.php): [code=php] <?php session_start(); // Always at the top include … | |
I have created a table in a mySQL DB where users are going to a form and entering ratings on 6 Categories (5 Specific and 1 Overall) for a particular item_id. On the item table, I have a column that calculates the total number of ratings this particular item_id has … | |
I have a long/register system working . Each user see their own profile details when they login. Now I want to users to see other users profile by clicking on a link to their profile. How do I do this? I need advice | |
<?php include 'ProcessDAO.php'; $dest=""; if(isset($_POST['login'])){ session_start(); // i get an error in this line !! $_SESSION['status']='online'; $_SESSION['breadcrumb']='home'; $pro = new ProcessDAO(); $dest = $pro->LogIn($_POST['username'],$_POST['password']); }else{ session_start(); $dest ="Location: ../index.php"; session_destroy(); } header($dest); ?> guyss can you help me out because in my Login.PHP file when i login i always get … | |
I'm getting ` Session: Error while trying to free lock for ci_session` show up in the error log a couple times a minute, sometimes, and every 15 minutes other times. Using Redis for sessions. It's not happening on a different server that has almost the same code base and is … | |
Hi, I have a logout script that works just fine but I don't think its actually killing the session(?). so i have index.php, login.php, home.php, session.php, and logout.php. When i logout from home.php I am redirected to index.php, which is great. But when i manually enter the home.php url i … | |
Making sites is nice and fun but what if you don't want everybody too see something like an admin panel or maybe a special button. Well this tutorial helps you understand how to add a password to a php site in a simple manner. There are two techniques you can … | |
Hello friends, I am having a confusion in my script please explain me what is it doing i don't know what it is i don't understand sessions very well, so please explain it if (isset($_SESSION['SBUser'])) { $user_id =*** $_SESSION['SBUser']***; $query = $db->query("SELECT * FROM users WHERE id = '$user_id'"); $user_data … | |
platform: IIS + Apache + mysql + php (please dont justdge me on the platform it was not my choice) I have this weird bug that seems to be directly related to my sessions on my web based app. when i travel between links, if i give the previous page … | |
in all pages will code with "session_start ();" but does not display all the information, as "First name, Last name" But if the user is connected, and when browsing pages, only shows the nick, and the other names disappear on the first page to connect, if it shows all the … | |
| Ok , i just have doubt and need suggestions for this.I have multistep form.What i am doing now that i am saving step-1 and step-2 data in session and in the last when user clicks on register all data saved in sessions will passed to database and inserted there.Now i … |
Hi i am currently building a admin section for my website but i am stuck at a certain point, right now my user authentication is working and my form validation is working great, when i log in as admin i want it to display the admin dash and when a … | |
Hi, i am using setExpirationSeconds() to set the timeout for user. but how to update the timeout timestamp in data base when user session expires automatically due to user inactivity. Regards, Nabin | |
Hi guys i have simple captcha that seems to working but the only problem i have seems to be with the callback function on the validation have a look at the captcha: function index() { $this->load->helper('captcha'); $this->load->library('form_validation'); //Input field, Friendly name, Attributes $this->form_validation->set_rules('name', 'Name', 'trim|required'); $this->form_validation->set_rules('email', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('number', … | |
Hi all okay so when i click on my home page on my login button it takes me to my login screen that all works well but when i submit the form it just reloads the page and does not redirect to the page specified in my controller. Also the … | |
I have images generated by while loop php based on how many course user have when user press on one of those images it will send him to that course page but all images send to one course page this my php code in** home page ** <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= … | |
Hi Hope,everyone is doing good out there. I need some help regarding which strategy to use for one of my projects. Here are the project details I want to generate PDF forms, by gathering data from user.There are different questions to ask and based on each answer,we will ask next … | |
Hi all, i have web application and login form. i would like when i exit (logout) it automatically logs out from all devices (or browsers or PC). Can anyone help me? | |
At times, I have need to push all submitted form array values into $_SESSION. To do this, I've written a small function: function addPostToSession() { foreach ($_POST as $key=>$value ){ $_SESSION[$key]=stripslashes(strval($value)); } } This works well, as long as $_POST is one dimensional, but in a form with checkboxes, $_POST … | |
Can I create user log in application without starting a new session(without using session_start()). I've created a application where user can log in but session is not created.But everything is working correctly.My application is working under one url.URL is not changing when user navigates.Everyting is happaning behind the scene usign … | |
Dea Friends, it is superb serveice you are doing....lets please talk about SESSION in PHP.My code is below. <!DOCTYPE html> <?php session_start(); ?> <html> <head> <title>Login page</title> </head> <h1 style="width: 20%" >Login Page</h1> <fieldset style="width: 30%"> <legend style="background: #59CC57" >Login</legend> <body style="background: #B6ECEB"> <form method="post" > Username:<input type="text" name="username" placeholder="username" … | |
Hello every one, I want develop an android application that should be implement seperate xml views for separate users when they are logged in. I don't know which package will be used in it and what are they called. And data of each user should be stored in cloud database. … | |
Hi, I am working on an aplication which contains two different portals (admin and members). `http://localhost/app/` is used for the members login and `http://localhost/app/admin` is used for admin's login. When I log in into members and admins portal both works fine but if I logout from one portal another portal … | |
i've two files one is send-data.php which contains html form and another one is receive-data.php, i am converting the form value as session value into second file and printing using echo. but it's not printing the output. //send-data.php <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html … | |
Hi, am not a experianced coder, would like to seek for help. i would like to create a session logout. a pop out appear which able to count 60 sec " Warning your eMyHome session will expire in 60 seconds. Do you wish to continue?" with button continue & logout. … | |
Hello guys,how are you? well im in a bit of trouble,so i want some help. I´m developing a site in VB.NET that in the beginning the user must login to access other pages.This part is ok,the user logins successfully and goes to members area.In this area,i would like to show … | |
Hi All, I have developed php login system. If user successfully logged in system will create a session call, `$_SESSION['username'];` Now I want to redirect user, if not logged in when try to view specific page. Please help me to write a code. I already wrote a code, but it … | |
hi, i have index.php and home.php. in order to go to home.php users have to login in index.php. but how do i not allow users to be directed to home.php when they type home.php address in the address bar? *am i making sense?* | |
Please help with this...say we have few subdomains domains on same server. blog.robots.com chat.robots.com forum.robots.com forum.robot.com generates the session id of a user. I want to share this session id with other domains....blog,chat... All for the purpose of not letting the user login twice on this domain How can I … |
The End.