Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cakephp user session in web service
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kiran Ambati  
View profile  
 More options Jun 22 2012, 7:48 am
From: Kiran Ambati <kiran00...@gmail.com>
Date: Fri, 22 Jun 2012 17:18:43 +0530
Local: Fri, Jun 22 2012 7:48 am
Subject: Cakephp user session in web service

Hi All,

In cakephp 2.1, I am developing a cakephp application , also web service
for third party application to access data. Output is json.

First time when user logs in through web service we create some
authentication token and for every next call client will send the
authentication token and I have to check authentication token available to
allow other actions of app.

I wrote a login function. when user tries to logs in , it returns success
or failure message. This is where I stuck. How to create this
authentication token? Where does cakephp store user related session? Can I
write session like

> $this->Session->Write('check.session','random string')

and then read it in second client call using

$this->Session->read('check.session').

Or is there any other better way to achieve this.

--
*Thank you,*
*Kiran.*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dr. Tarique Sani  
View profile  
 More options Jun 26 2012, 8:21 am
From: "Dr. Tarique Sani" <tariques...@gmail.com>
Date: Tue, 26 Jun 2012 17:51:54 +0530
Local: Tues, Jun 26 2012 8:21 am
Subject: Re: Cakephp user session in web service
With a web service your authentication system should be stateless -
that is not dependent on session

Start at http://book.cakephp.org/2.0/en/core-libraries/components/authenticati...

HTH
Tarique

--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »