Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-10-2011, 10:28 PM PHP Sessions
Experienced Talker

Posts: 48
Name: Andrew Lechlak
Trades: 0
Alright here is a simple question I hope.

Can you pass a session variable to a page that is not accessed directly?

1. Login and set the session variable.

2. It works on all of my pages that I access

3. I want to open a session on a page that is....

called up from a JS file as an include.



Thoughts on a better way?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Lechlak is offline
Reply With Quote
View Public Profile Visit Lechlak's homepage!
 
 
Register now for full access!
Old 01-10-2011, 10:37 PM Re: PHP Sessions
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
You can access session data pertaining to a user so long as the request originates from that particular user. This includes ajax requests, which is what I assume you are referring to.

Edit
Or are you talking about a file specified in a script tag? In either case the answer is the same.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by NullPointer; 01-10-2011 at 10:53 PM..
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-10-2011, 11:38 PM Re: PHP Sessions
Experienced Talker

Posts: 48
Name: Andrew Lechlak
Trades: 0
Apparently it has something to do with the fact that Flash is involved. Ill post if I get it figured out. Thanks anyway.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Lechlak; 01-10-2011 at 11:58 PM..
Lechlak is offline
Reply With Quote
View Public Profile Visit Lechlak's homepage!
 
Old 01-11-2011, 07:53 AM Re: PHP Sessions
Experienced Talker

Posts: 48
Name: Andrew Lechlak
Trades: 0
I have been trying - for hours and hours ( literally 16-20 hours ). The issue ended up being that using a Flash uploader, it will only accept $_GET as a variable, not a session var. UGH - just glad it is solved. Thanks anyway.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Lechlak is offline
Reply With Quote
View Public Profile Visit Lechlak's homepage!
 
Reply     « Reply to PHP Sessions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31899 seconds with 12 queries