Webpage Login

I have session problem using the iphone app.

I would like to display a part from the website in an UIWebView. So far so good. That was no problem. Problem is that it is a part from the member area and when I log into the app as a member the webview does not recognise it. So I think the login session has to be given to the web in order to be "logged in".

 

How do I manage that?

Thank you for your help.

Quote · 6 Jun 2012

If you are adding web pages using API it can pass authentication information as url parameters - so you can check it.

Please refer to this doc for more information:

http://www.boonex.com/trac/dolphin/wiki/DolModMobile

Rules → http://www.boonex.com/terms
Quote · 8 Jun 2012

There is no cookies or session variables accessible  via the mobile app.

If you need to access a module with a particular user you have to pass it in the URL each and everytime.

 

m/Yourmodule/Yourfunction/{member_id}/{member_password}


on your web server in the file BxYourmoduleModule.PHP add


function actionYourfunction($iMemberid,$sMemberPass){


}

Hope this helps!

http://www.mytikibar.com
Quote · 8 Jun 2012

I have no idea on how to implement this function.

We are trying the following.

We create a seperate theme to match a mobile format.

We created some new UIWebViews to show e.g. the member profile page.

How can we get directly to the member profile without having to go through the login once again?

Quote · 13 Jun 2012

There's no session variables stored when you authenticate with the mobile app.

 

You have to validate every request if you are in an area that requires the user to be logged in.

It looks confusing, but if you follow the news module included in boonex you will see a mobile section, I used that and some experimentation to get my mobile modules working.

You can use your web browser to emulate the phone app, then do final testing on the mobile app

I added the security stuff at the end once I have the mobile module working properly so I can test it from my web browser 1st.

Right now I have my mobile development is on hold until I see how the new mobile app works (I really HOPE it doesn't break what I've been working on!).

Contact me on my site if you want some more advice, I don't get here everyday and some times I miss posts.

http://www.mytikibar.com
Quote · 13 Jun 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.