![]() |
|
| *AX SOFT>>>Programming & Design |
Php session issues? |
This is my first time using sessions, and I think I'm using them wrong. I had a page executing fine with normal variables which retrieved user submitted post data, but, I had to convert those into session variables so peoples information got assigned UIDs and didn't get mixed up. However, when I ran the page with the session variables, it didn't execute, it was just blank. I've looked over my code, and I don't see any syntax errors, so i guess I have a fundamental problem with using session variables. Below is some code which I think has problems, so, please in your answer, tell me what you think is wrong, and some common restrictions of session variables. I strung these together, not sure if this can work First, check your web server logs for error. Make sure php error reporting is on. Whenever you get a blank page, you've got an error. One problem you are having is that if you have not enabled session autostarts in your php.ini file, you must call session_start() at the very top of any page on which you intend to use server variables. |
| Tags |
| General - Computers & Internet Software Security Programming & Design Facebook Flickr Google MSN MySpace |
| Related information |
Refactoring code is something a human should do using an IDE. One analysis tool I enjoy is PMD. It runs a bunch of (configurable and extendable) rules and reports a list of things it sees. Sev... Here is the website to download that font. ... Baubau and Pico White are in that style. ... pop that Vista disc in the cd tray and reboot..keep tapping the F2 key untill the black and white screen appears,now select install windows....windows will ask you if you want to keep the old parti... i'm also has that same problem.. ...Here's the explanation: ------------------------- #include <stdio.h> ------------------------- This line tells us to INCLUDE a header file containing standard input output function... That is going to be quite difficult. If you are still stuck with your project assignment may be you can contact a programming expert live at website like ... You should the checking at database. E.g. Select ID from users where username ='uname' and password = 'password'; If the query return no result, means the username and pass... |
Categories--Copyright/IP Policy--Contact Webmaster |