279 Topics
| |
hi i have one page where i will get Categories of Products and i want to make session of those Categories..But when i referesh page session break...my code is.. [CODE] session_start(); $_Session['P_Category'] = $_GET['P_Category']; ////line 8 $P_Category =$_Session['P_Category']; $query = "select * from tblProducts_info where P_Category = '$P_Category'"; $result = … | |
you may download [URL="https://skydrive.live.com/embedicon.aspx/.Public/CLC.zip?cid=3e21e1e16478087a&sc=documents"]this[/URL] to see the whole thesis program. I'm more for now on functionality than design interface. this about a problem on the get_value.php to the receipt.php the problem: I can get now the value using session functions but the problem is.... the list of checked items from … | |
Hi We have two identical web servers in a farm and I need them to be able to share Session variables as I do not know which machine the user will be using at any given time i.e. if a user where to log in to a site on server1 … | |
Hello Friends, I want the following issue to be resolved: 1. page results.php shows the users list (sql query results). This page also stores all user_id to an array $_SESSION['user_ids']. And when I click to view details of a user, user_view.php shows the details of that user. 2. I want … | |
| I have a form in account.php that is prefilled with the user's current info but can be changed and then when you submit, it updates the database. However, when returned to the page after the update, the prefilled text is not updated. It only updates if you re-log in. At … |
Hello all, I am trying to transfer some variables to another page for editing. I am having troubles with the checkboxes. [CODE]GridView1.Rows(e.NewEditIndex).Cells(12).Text & "~\/~" & _[/CODE] is a checkbox and when passed and split it comes up as a empty string. I know there has to be a way to … | |
Hi all, I am trying to create a small login system, but so far I suck at it. I have a form in one page. It contains only: EMAIL, PASSWORD. I want to do this: When the form has been submitted to the processing page, I am trying to check, … | |
Im thinking about taking on a chat room php based project. I want to make sure my logic is right though. This is very raw so please feel free to contribute if you see any problems that might occur. [B][U]MYSQL[/U][/B] [U]TABLES[/U] Username chatroom1 chatroom2 etc.. [B][U]PHP[/U][/B] [U]Sign up.php[/U] Insert username … | |
| Hello people, If I want to access to my admin back-end, you will get a form to input your name and password. I have created a class that sets my session in a file called [CODE]StartSession.class.php [/CODE]here it is: [CODE] <?php class StartSession{ static $admin_s; static $password_s; function __consrtuct($admin_session,$password_session){ session_start(); … |
i making a system, in which at max 10 users can login and work independently. But the problem is that when a user logs out, i am just redirecting him to the login page, i want to end that session, so that IF HE CLICKS ON THE BACK BUTTON, HE … | |
Hi all, I have few php pages. One is a dynamic form, one is an file holding some arrays, one is a script that is the action for the form and the other two are to update the array. What I am trying to do is append an array using … | |
Hi, its me again.:scared: im using the following code to destroy my session but instead of removing the session, it just empties the data, for e.g: when i start the session a file is created, after storing my data in the session the file could be 2 or 3 kb … | |
hi all, i tried following code for session management bt i dnt knw where it went wrong? can anyone please help me solve the problem. i want to restrict user going on the prevoius page after logging out when he clicks on the browser's BACK button. ****************************************************************** 1) i created … | |
Hi, I am new at php so please I beg of you to go easy on me., I have looked on the site and read many tutorials but I am trying to understand the following: When I call session_start() at the beginning of a page a file gets saved to … | |
In my project everywhere I get data(ex.customers) in a datatable and for further use I store it in session as [CODE]Session.Add("DtTblName",dt_Cust);[/CODE] And access through dt_Cust=(DataTable) Session["DtTblName"]; All is working fine, my concern is, Is it a right way to store heavy object like datatable store in session, to avoid database … | |
I'm construted a php-class where I create and save some elements in an XMLfile. Outside that class I instantiate the class and save it in a _SESSION['obj'] if the session has not been created yet, otherwise I want to get the document back and add new elements to the XMLfile. … | |
Hi all, I'm facing problem while with invalidating session. Actually I want to redirect a user to the login page if the session is invalid either he presses back button or enters a url. Plz help me. Thanks. | |
Hello! 1) I have no idea how to use Session objects, especially when it has to remember the Session of the logged user. When the user clicks logout, his session should be removed until the next time he logs in. 2) Also, how to validate the user in such a … | |
So this may be a bit of a stupid question but I'm not sure I'm understanding this completely. Currently, my site uses sessions to store username and a UserID across the site; however, the session lacks the ability to remember a user should they close the browser. I want to … | |
Hello! I am beating myself up here. I use [CODE]include "header";[/CODE] on all pages, at the top, the header contains everything within <header></header> on a html page. But should i use [CODE]session_start();[/CODE] inside the header or before i include header.php on all pages? The session on my website logs out … | |
I have the login page created that captures the userid & also an edit page that shows all info of a certain table in database. Trying to figure out when a user views the edit page to have it only show the info the user created. Making it only possible … | |
Hi all, I have a question regarding PHP login systems. Is it possible to have a login system within another login system. Here's an example: I login to a site and PHP creates the session. I then want to access another page with some higher-secure content so I ask the … | |
Hi bro, this is my frame work of the simple login script. now i want a send the id input to the display.php, without changing this frame work coz i only know this way of making a simple login. [CODE] <?php if (isset($_SESSION['basic_is_logged_in'])) { unset($_SESSION['basic_is_logged_in']); } session_start(); $errorMessage = ''; … | |
Hi everyone, I strongly believe that this topic will not just help me but everyone else using php. My question is how to manually change the settings where in the storage of the sessions is set to the database tables that we will create in the phpmyadmin (mysql)? I have … | |
I am trying to create a page where a registered user can go, view the information from their profile, and update that information if necessary. I've started putting something together however it's inefficient in my opinion. Here's what I'm trying to figure out: [LIST=1] [*]Is there a way to check … | |
| Hi, If I have a home.php file and I want to store it into a $_SESSION like $_SESSION['home'] = home.php - how do I do that? I tried using include but it doesn't work... I have to have it in a session because it fits into a bigger portion of … |
I Want to Store User Name and User Role In Some Way That I Can Used On My Every Page But I Have Already used Session And Cookies So Guys If You Have Any Diffrent Ways Then Show Me Please Thanks | |
i am writing a website that loges somebody in by cookies. i want to make it so if the person goes to the main page, (index) but did not log out from their last session it redirects them to the members page. how would i do that? also, how would … | |
Hey everyone, I'm relatively new to PHP coding and I have a question I've been having trouble finding the answer to - it may be I'm not sure [I]exactly[/I] what I'm needing or what it's called. I am trying to create a very rudimentary login in system where users will … | |
Hello friends, Props to anyone who can help me out on this because I have a feeling it's going to be quite complicated. I've searched and searched and can't seem to find the right answer so I've decided to resort to the brilliance of these forums. Here's my scenario: I … |
The End.