Current location: Hot Scripts Forums » General Web Coding » JavaScript » Session validation


Session validation

Reply
  #1 (permalink)  
Old 08-12-05, 07:59 AM
sharad sharad is offline
Newbie Coder
 
Join Date: Jun 2004
Location: noida
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Session validation

I am working on a PHP project. In this I am using the PHP's session fuction to establish the session cokkies. In all PHP files I can access the session cookies values, whatever I am storing in it. But how can I validate these session cookies in HTML file. Is it possible to validate these ssesion cookies with the help of javascript.?
Reply With Quote
  #2 (permalink)  
Old 08-15-05, 05:47 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not sure what you mean by validating but I can tell you this:
JavaScript runs clientside, which means it does not have direct access to any serverside variables whatsoever, for that you need to write those variable values to the page and thereby setting a JavaScript variable.
What kind of validation do you need?
There are ways to communicate with the server using JavaScript, this has become known as AJAX but is basically different ways of requesting new information from the server without having to reload the whole page.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with session altan9 Perl 3 06-24-05 02:36 PM
validation not working buzzby PHP 13 05-29-05 02:09 PM
session help darkcarnival PHP 5 05-09-05 12:40 AM
how do I manage session cookies? Jansen Windows .NET Programming 1 05-04-05 03:32 PM
Validation oracle_mik JavaScript 4 04-04-05 07:50 PM


All times are GMT -5. The time now is 10:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.