279 Topics

Member Avatar for
Member Avatar for codingin

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 …

Member Avatar for Alisha_8
1
175
Member Avatar for Jaklins

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 …

Member Avatar for Bharath_6
0
12K
Member Avatar for jrotunda85

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 …

Member Avatar for Vishwajeet_2
0
3K
Member Avatar for nanakumi75

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

0
777
Member Avatar for syria718

<?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 …

Member Avatar for Dani
0
8K
Member Avatar for Dani

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 …

Member Avatar for Dani
0
4K
Member Avatar for random_1

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 …

Member Avatar for random_1
0
447
Member Avatar for cwarn23

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 …

Member Avatar for diafol
5
2K
Member Avatar for sahilmohile15

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 …

Member Avatar for madCoder
0
294
Member Avatar for berserk

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 …

Member Avatar for berserk
0
371
Member Avatar for pilucho

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 …

Member Avatar for pilucho
0
300
Member Avatar for anmol.raghuvanshi1

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 …

Member Avatar for cereal
0
816
Member Avatar for Ventech_IT

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 …

Member Avatar for diafol
0
274
Member Avatar for nabin634

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

Member Avatar for moneeshot
0
431
Member Avatar for Ventech_IT

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', …

Member Avatar for cereal
0
2K
Member Avatar for Ventech_IT

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 …

Member Avatar for diafol
0
295
Member Avatar for SoMa_2

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= …

Member Avatar for diafol
0
2K
Member Avatar for baloch123

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 …

Member Avatar for baloch123
0
740
Member Avatar for azegurb

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?

Member Avatar for broj1
0
264
Member Avatar for rsleventhal

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 …

Member Avatar for cereal
0
423
Member Avatar for yavindu

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 …

Member Avatar for diafol
0
291
Member Avatar for zebnoon

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" …

Member Avatar for broj1
0
469
Member Avatar for umair jameel

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. …

Member Avatar for peter_budo
0
191
Member Avatar for peeyush.budhia

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 …

Member Avatar for peeyush.budhia
0
229
Member Avatar for blueguy777

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 …

Member Avatar for blueguy777
0
741
Member Avatar for swathys

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. …

Member Avatar for swathys
0
320
Member Avatar for VRamone

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 …

Member Avatar for mahak.butt2
0
2K
Member Avatar for jKidz

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 …

Member Avatar for tapananand
0
248
Member Avatar for nadiam

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?*

Member Avatar for nadiam
0
502
Member Avatar for kindo

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 …

Member Avatar for broj1
0
224
Member Avatar for engrjd91

I have the following code in my php files, but i am having a following error while loading my page? "Notice: Undefined variable: username in C:\xampp\htdocs\fyp\cms\cms.php on line 48" My page is successfully loading up, but username is not being shown in the page and the error is popped up …

Member Avatar for faisal.qureshi.7121614
0
601
Member Avatar for kindo

Hello world, I'm developing two applications: 1. Chat room 2. Forum The two are under the same domain : **chat_room**.ask.com and **forum**.ask.com What I wanna do is this, I want users who login to the forum to at the same time use the chat room without login in again...just like …

Member Avatar for diafol
0
180
Member Avatar for Mian Sahib Jan

i have a repeater in one page to which me load the data from database now i want to click a button and i get the value of a repeater specific row data and kept data in session and access that data an another page.plz help me any one have …

0
204
Member Avatar for thorin

I am getting a very mysterious bug when I run my java website in Browser Mode: IE9 Compatibility View - the sessions stop working and I have no idea why. I don't think there is a tag or any code that I can include in my website that can force …

Member Avatar for thorin
0
619
Member Avatar for ngonix

Hello, I have an application which shows users which are currently logged into the system. The web application is running on a server and everytime a client on another computer logs in, he/she appears on the active users list. Below is some of the code: loggedusers.php ...... <table cellpadding="3"> <tr …

Member Avatar for iamthwee
0
3K
Member Avatar for Shahbaz_2

I am new in web and PHP want to learn about session... how they are made on login... and how they are carried to next page... i know to make database and queries..

Member Avatar for Shahbaz_2
0
238
Member Avatar for winbala5

Hi all, I had two website in different servers. Both website had same headers. so if login one server website and going to another website i want same session in this website. how to pass the session values to this server. And also if logout server means both servers sessions …

Member Avatar for winbala5
0
278
Member Avatar for decade

Hi everyone, I'm a newbie in VB.net I would like to ask if there is a code or equivalent code or script like $_SESSION variable of PHP in VB.Net Thanks;

Member Avatar for JorgeM
0
176
Member Avatar for mastermind2

Hi Friends Please help me about a session problem, i am unable to find the reson of this issue. I am Developing a matrimonial site for a client : bit.ly/19mFQ8x Problem : users are automatically logout when they click on any page after login, but it is not happning in …

Member Avatar for diafol
0
361
Member Avatar for lauraroxi

Is it possible/compatible to use Session Types in Java for a cloud-based application using Windows Azure (SDK for Java)?

0
203
Member Avatar for Indians

here if user logged information is correct it should show the main page. in that mainpage right top corner i need to show the username, employee id, employee name. here i can get username correctly. but, i did not get employee id and employee name. for example : Name - …

Member Avatar for minitauros
0
729
Member Avatar for Indians

this is my login page coding. my login form html coding and php coding is in same page. now if login successful it will redirect to mainpage.php and then if login failure it will show the error message on same page (login.php). how to do that? i tried something but …

Member Avatar for minitauros
0
11K
Member Avatar for Maideen

hi anybody can tell How can session store in mssql database? How to do SQLServer Session Mode start? Pls help me Maideen

Member Avatar for Maideen
0
173
Member Avatar for grafic.web

Hi, i am new in asp.net and i found it quiet difficult... i was programming in classic asp and sql server, but asp.net looks quiet different, specially if i do program in C# .... Than i hase a couple of questions : 1) if i do a form with 2 …

Member Avatar for grafic.web
0
371
Member Avatar for Burhan_1

I am creating a flight/hotel reservation system like farecompare.com Farecompare parse values to other sites and create sessions other sites too. Anyone tell me how they create sesssions in it. I can parse url but i am not able to create sessions. public function flight($depart, $return, $from, $to, $type, $class, …

Member Avatar for broj1
0
193
Member Avatar for php_php

0 down vote favorite i want radio buttons remain selected across all pagination. For taht I have collected the checked value in pagination at the top of page. But it is not working well. What is wrong with this code ? This is how i get selected value of radio …

Member Avatar for pritaeas
0
194
Member Avatar for tibormarias

Evening Sirs! Well I have a quiet emberrassing problem caused by i don't know what, but I would like to get rid of this issue. I have a login with session open every .php document. But when I try to open the following file, it stops my session. This is …

Member Avatar for tibormarias
0
240
Member Avatar for VNexus

Hi everyone, I really haven’t found much that would be fitting in a half decent or secure way on this issue, but... Let’s say I have a website called mysupportsystem.com and I've incorporated a third party cloud based ticketing system which is fed into the index page via iframe at …

Member Avatar for VNexus
0
511
Member Avatar for ss125

Please can anyone explain clearly.... what is the difference between session and httpcontext.current.session and application variables? Thankyou in advance...

Member Avatar for ss125
0
225
Member Avatar for ss125

When i implement the following code in my Global.asax.cs in the session timeout procedure, It prompts me an error... HttpContext.Current.Response.Redirect("login.aspx"); What will be the problem? Note: I want to forward the user to login page when the session is timeout.So i used this. Correct me if i am wrong in …

Member Avatar for ss125
0
167

The End.