Welcome Guest, Not a member yet? Register   Sign In
Get Tank Auth username from outside program ?
#1

[eluser]jmjm[/eluser]
Hi everyone,

i hope that you can help me to solve my problem.

Actually, i am using Tank Auth in my website, and i have a page called usernameCheck.php
The code is really simple and look like this :

Code:
if ($this->tank_auth->is_logged_in()) {
echo $this->tank_auth->get_username();
} else {
echo 'not logged in';
}

When i login and look at the page, i can see my username.
But when i try to access the page with a simple page request from another Application (a game), and i always get 'not logged in' as a response.

Is there any way to get the tank auth username from 3rd party application ?


Thank you in advance for any help.
Regards.
#2

[eluser]jmjm[/eluser]
Up please..

Do you think that i need to input some header informations ?
Or set any cookies informations ?

Any hint is very welcome, i am still trying to find the answer myself.
#3

[eluser]jmjm[/eluser]
Ok, its not related to cookie, its related with session.

Basically, i think that in oder to get the username from tank auth, i need to have the codeigniter session.

But when i ask my external program to check my page, i have no session.
That is surely why it always return not logged in.

I am trying to get more informations on that subject.




Theme © iAndrew 2016 - Forum software by © MyBB