Total members 9936 | Gratitudes |It is currently Sun Feb 05, 2012 8:00 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: Session Valid
PostPosted: Sat Apr 07, 2007 2:22 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2101
Location: Earth
Has thanked: 39 time
Have thanks: 56 time

Quote:
This is a small code use session for Validation



Remember : Write Session_start(); function in first line , because in some servers the session will
start automatic and it can't start the session twice so will be an warring.

Code:
        session_start();
        $valid="msi";
        $_SESSION['valid']=$valid;
        session_register('valid');

echo "next page";


Code:
session_start();
    if(isset($_SESSION['valid']))
     {
      echo " Session is valid
";
     }
       echo " Session is valid
";

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 how to write code message to user before session will expire  ASP.NET  Gordanak  4
 i need code for identifying web user session  ASP.NET  PERRYS  0
 EJB session bean  Java  NIKKY  1
 PHP session variables problem in Firefox  PHP  gilbertsavier  0
 PHP session variables problem in Firefox  PHP  gilbertsavier  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team