Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-26-2007, 04:49 AM   PM User | #1
casanova_mehta
New to the CF scene

 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
casanova_mehta is an unknown quantity at this point
Initiating session w/o refreshing a page

Hi all!!

Actually i m doing an application which is same like a rediff mail message board. I have nearly completed it but not understanding tht how to initiate a session when user logs in without refreshing a page. I have already used ajax to verify user but not getting how to initiate a session or any other thing which is not on the same page for these connections.. I hope u r getting my question and i really appreciate ur response. Also if any1 have any idea of rediff msgboard plz say me what they r exactly doin, with js and ajax only or some other stuff...

Waiting 4 ur replies guys!! I will really appreciate ur responses...

Thanx,
Casanova...
casanova_mehta is offline   Reply With Quote
Old 03-01-2007, 02:30 PM   PM User | #2
elvisismymother
New to the CF scene

 
Join Date: Feb 2007
Location: Utah
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
elvisismymother is an unknown quantity at this point
PHP sessions are identified by a key right. Often stored by a cookie or in the url. If you don't store the key, then how do you expect PHP session handlers to line up the request with the stored session flat file?

If you login via AJAX (you better have SSL) you can start the session on the response page dump and return the key as text or maybe do something fancy with cookies. This way, the next request will call with the key.

To be honest, I haven't tried this, but it sounds like it should work if PHP sessions appear to work as they do.
elvisismymother is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:27 AM.


Advertisement
Log in to turn off these ads.