using jaws data

Discussion about advanced usage, web server stuff, proxies, etc.

using jaws data

Postby analogbernd » Fri Jan 30, 2009 1:26 pm

Hi, I will develope a little script for my site. how can I use the userdata (cookie) are there any developer documentation about jaws?
analogbernd
 
Posts: 106
Joined: Mon Jan 19, 2009 3:51 pm

Re: using jaws data

Postby afz » Fri Jan 30, 2009 1:53 pm

for set cookie value, use:
Code: Select all
Jaws_Session_Web::SetCookie($key, $value, $expire_age);

and for get cookie value, use:
Code: Select all
Jaws_Session_Web::GetCookie($key);
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am

Re: using jaws data

Postby analogbernd » Sat Jan 31, 2009 7:00 am

many thanks. And how I can know which keys you are used in the jaws php files for cookies?
I will check if a user logged in and the I will use his username and email. which jaws files are in use for the login handling?
analogbernd
 
Posts: 106
Joined: Mon Jan 19, 2009 3:51 pm

Re: using jaws data

Postby afz » Sat Jan 31, 2009 8:51 am

fo check visitor logged or not:
Code: Select all
if ($GLOBALS['app']->Session->Logged()) {
}

for get information of logged user:
Code: Select all
$username = $GLOBALS['app']->Session->GetAttribute('username');
$name = $GLOBALS['app']->Session->GetAttribute('name');
$email = $GLOBALS['app']->Session->GetAttribute('email');
$website = $GLOBALS['app']->Session->GetAttribute('url');
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am

Re: using jaws data

Postby miguel » Thu Mar 26, 2009 3:53 am

alright so I really like this, Now is there a simple if statement I can wrap around scripts outside of JAWS that will do this and then run an else kill so the script won't run if there is no JAWS user session set?
miguel
 
Posts: 7
Joined: Sat Mar 21, 2009 10:24 pm

Re: using jaws data

Postby miguel » Fri Apr 03, 2009 5:48 pm

Just wondering if any of the admins had any idea about my question? or maybe could point me towards a link that could help me with this?
miguel
 
Posts: 7
Joined: Sat Mar 21, 2009 10:24 pm


Return to Advanced topics

Who is online

Users browsing this forum: No registered users and 3 guests

cron