279 Topics

Member Avatar for
Member Avatar for OsaMasw

Hello there, I have a big big problem in my project, I have a login page , so everyone log in, the **session** will be his **id** $_SESSION['userid'] = $id; till now there is no problems, I put a header file to check the user is logged in or not …

Member Avatar for phorce
0
125
Member Avatar for cheelo007

Ok, I may be missing something very easy but when I submit and query the database the session doesn't set for some reason and I'm sent back to admin.php per instruction of my index.php file. Could someone please give this a look over, maybe it's a very simple fix, but …

Member Avatar for cheelo007
0
379
Member Avatar for rikkitikkitavi

Hi, I need help please. i spent the last 6 hours looking EVERYWHERE for help about using PHP session across web pages. The $_SESSION variable is supposed to be global, right? but I can only access it on the page it was declared. like: //PAGE 1 this works <?php session_start(); …

Member Avatar for jkon
0
678
Member Avatar for Master Mascus

Hey guys i have been assigned a work of designing a online shoe shop. I am stuck on the part of saving the chosen products on a session vaiable (rather an array) can anyone help me out to give me an idea how to proceed.

Member Avatar for JorgeM
0
230
Member Avatar for MrCapuchino

Hello, I have a really weird problem. I have a web application written in asp.net and it works perfectly locally, the problem appears when I deploy it to my remote server. Everything works fine except for a button, it updates information in a database. The thing is that the problem …

Member Avatar for JorgeM
0
215
Member Avatar for vinay7868

can any body explain how to manage sessions in the pages that without login no user must access any page and if tries to access using browser address bar then redirect it's location to login page.....pls do reply what to check to manage this by using session......

Member Avatar for Zagga
0
169
Member Avatar for shhh

( ! ) SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to undefined function session_is_registered() in C:\wamp\www\attendance\include\checksession.php on line 3 Call Stack # Time Memory Function Location 1 0.0010 183576 {main}( ) ..\admin.php:0 2 0.0015 185696 include_once( 'C:\wamp\www\attendance\include\checksession.php' ) ..\admin.php:3 <?php session_start(); if( !session_is_registered("ulogin")) { header("Location:login.php?invalid=2"); } …

Member Avatar for rotten69
0
332
Member Avatar for Stardemos

i'm using php 5.4.3, I'm wondering if it's possible to use function session_start(). my idea is to have a login page, then use the username in all pages of the site, the problem is that the $username is not visible in the second page... index.php <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta …

Member Avatar for Stardemos
0
466
Member Avatar for pranay1995

Hi all, i am trying to run the following HTML page which is the memebers area after the user login is sucesful the session is registered please check it and help me:- HTML code:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style type='text/css'> /* …

Member Avatar for pranay1995
0
246
Member Avatar for Hypalink

Hi guys, im trying to find out the best way to set a unique session variable. Normally I would use a "username", but this project does not need a login script or users table. Whats the best way to create a unique session so that I can echo out the …

Member Avatar for blocblue
0
211
Member Avatar for garyjohnson

Okay I have a database where it stores the users information, like their login name, email, and password. They can upload videos to my site, when they upload the videos, it saves to a database, the database is set up like this, VIDEONAME EMAIL NAME funny sample@email.com abcd.mp4 It stores …

Member Avatar for LastMitch
0
240
Member Avatar for flynismo

## A quick overview: ## After the login form is submitted, it is handled by a seperate file, which checks the form and sets session variables if the login was successful. The script works fine...it will log me in, and redirect me to the proper page as well as set …

Member Avatar for flynismo
0
291
Member Avatar for fpsasm

Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest …

Member Avatar for fpsasm
0
266
Member Avatar for thecameraman

Hello, I created a site where you have to log in and it begins a session. I wanted to make a stay logged in feature so I started using cookies. I made it so if there was no session then check for cookies. My site also sends out emails with …

Member Avatar for thecameraman
0
204
Member Avatar for mir.jde

Hi Every Body I have been working on a project Where user has to login and edit contents of his web The thing happening is every page is working fine and there is no error except only in one page & which is freaking me out.....when i hit submit button …

Member Avatar for mir.jde
0
440
Member Avatar for cali_dotcom

Hi guys, i have an application that seats on a single webserver that depends on a third party application running mssql, so i use mssql over free tds. now i have to scale this site so i have to think about how to handle the sessions. i ma basically looking …

Member Avatar for pritaeas
0
297
Member Avatar for raficomps

> **I want to store session of employee that is employee id when employee login with username and password store employee id as session using vb.net** > **i have a form where employee enter his username and password after entering he must select new form from control panel when he …

Member Avatar for Pgmer
0
200
Member Avatar for NZSnowMan

I have searched everywhere for this, but I'm really not certain we would all describe the symptoms the same way. It is most bizarre. I set a random hash string (doesn't mater how - I don't believe - but I will post code below), store it in a hidden form …

Member Avatar for Melarlo
0
247
Member Avatar for Djmann1013

Hi, I am trying to check if a certain username is in a session. This is what I have so far... <?php if ($_SESSION=='Djmann1013') { // Do the work here. } else { // Don't do anything :P } ?> But, when I test this, it does nothing. But when …

Member Avatar for Djmann1013
0
164
Member Avatar for MDanz

I've looked everywhere and haven't found a clear step by step tutorial on how to secure sessions/cookies. Here are snippets of my code, i'd like to know how i can improve on session security to prevent fixation/hijacking and cookie safety. This is snippets of code for the user login system. …

Member Avatar for pritaeas
0
299
Member Avatar for Maha Sh.

Hi all, I am trying to write a code for logout, and I want to clear session My code Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Session.Abandon() Response.Cookies.Add(New HttpCookie("ASP.NET_SessionId", "logAccount")) Response.Redirect("WebForm5.aspx") End Sub and i want to disabling browser's to go back please hellp !!!!

Member Avatar for hericles
0
161
Member Avatar for dougsix

A web site I'm trying develop has several pages that won't open unless the user is logged in. If not logged in, the user is redirected to a login page that tells the user why they were reditrected. Prior to the redirection, a SESSION variable stores the path back to …

Member Avatar for dougsix
0
179
Member Avatar for pgmarco

Hello, I am familiar with PHP and MySQL and teaching myself how to create a login script, I am not sure if I am simple missing something or something is worong with the code. I am able to signup a user and submit the data to the MySQL table, It …

Member Avatar for pgmarco
0
324
Member Avatar for stephen_UK

Ideally I would like to take a value entered from an Option List and use it in a linked program before the form is submitted, The value would be used in a select search so that the operator then knows what to format of data to enter in the next …

Member Avatar for stephen_UK
0
195
Member Avatar for rayidi

# How to access $_SESSION in jQuery ? # I'm developing a existing chat using jQuery with PHP. here is the code function createChatBox(chatboxtitle,minimizeChatBox) { if ($("#chatbox_"+chatboxtitle).length > 0) { if ($("#chatbox_"+chatboxtitle).css('display') == 'none') { $("#chatbox_"+chatboxtitle).css('display','block'); restructureChatBoxes(); } $("#chatbox_"+chatboxtitle+" .chatboxtextarea").focus(); return; } $(" <div />" ).attr("id","chatbox_"+chatboxtitle) .addClass("chatbox") .html('<div class="chatboxhead"><div class="chatboxtitle"><a …

Member Avatar for pritaeas
0
219
Member Avatar for arwalters1990

Hello. I've been viewing this site for a long time, but finally decided to join and ask for help. I'm using citrusDB and a sample code from authorize.net and I want to pass off some information from the citrus DB to the authorize.net code. I've been trying to do this …

Member Avatar for arwalters1990
0
334
Member Avatar for Octet

Hello, I am trying to create a members page for my website and I want it to display a welcome message for when the person views it, something like: "Welcome <USERNAME>" I am new to PHP so I am not sure if there is something I am doing wrong, here …

Member Avatar for cereal
0
8K
Member Avatar for coleguitajuan

Dear friends, I have this form (raffle_winner_form.htm) with the action in raffle_winner.php: <form name="form1" method="post" action="raffle_winner.php"> <label> Max numbers: <input type="text" name="max"> </label> <p> <label> <input type="submit" name="submit" value="calculate"> </label> </form> **raffle_winner.php** <?php session_start(); $session = session_id(); $number = mt_rand(1,$_POST[max]); ?> My intention is to show the random number in …

Member Avatar for vibhaJ
0
163
Member Avatar for athulram

My site needs a way to know whether a user is an admin or not in multiple pages. So is it safe to store whether a user is an admin or not in session variable? Or is there a better alternative (Maybe another superglobal variable?), It will only hold a …

Member Avatar for BenzZz
0
201
Member Avatar for tahsin.rahit

The problem is, when I load a particular page (user.php) the session variable not work. But on the other pages it works fine. Even in my local host user.php also works fine. Only user.php on remote server is occuring this problem. This is login script <?php require_once 'inc/functions.php'; require_once 'inc/mysql_cnct.php'; …

Member Avatar for tahsin.rahit
0
6K

The End.