Why doesn't personal Tab in Teams App keep PHP $_SESSION data? - php

I have an App developed in "Developer Portal" in Teams with a personal tab embedding a LMS (Chamilo) which is working fine in a web browser, but inside a personal tab in Teams the data stored in PHP global variable $_SESSION is not keeping or is being deleted by the Tab o somehow by Teams.
I checked and I noticed that for some reason, the PHP global variable $_SESSION is getting empty in Teams
It was working fine till September last year, and it is working fine in Android Teams, but in desktop or web Teams I cannot login to my LMS or use PHP $_SESSIONS along PHP pages.
I'd like some help on how to configure my Team App or solve this problem.
Thank you!!!

Related

Share session across multiple sites with YII and core PHP

I am working on a project where I have games in one AWS instance and website is on another instance, Now we are going to use load balancer so I am finding a way to retain website's session into the games instance, so I stored session into the database, the database is common for both games and website instance, Website is developed with Yii 1 and games with phaser and core PHP.
I successfully stored session into the database and website working fine without any issue, but I don't know how can I retrieve that session in my games instance from database.
This is how my session table look likes
Please guide me how can I get this session in games instance. Please note I am using postgres Sql not MySql.
Thanks in advance.
As an AWS user you can store sessions in their DynamoDB for free(25GB). https://docs.aws.amazon.com/en_us/sdk-for-php/v3/developer-guide/service_dynamodb-session-handler.html

Opening link in android app

I have a website, www.website.com. This website includes three pages:-
Home Page www.website.com/home.php
Contact Page www.website.com/contact.php
Offer Page www.website.com/offer.php
Now I have created a web view app of my website (Native App)
A user having an android app, visits www.website.com/offer.php?root=yes from the browser.
What are the ways, so that the link opens in the app, rather than in browser?
I'd suggest you using this assistant, which is built in Android Studio. It's gonna add the necessary code for you in order to lead the users from those links to your App using App Links. Notice that this solution is available only from Android 6.0 (API level 23) or higher.
In order to support lower API levels, you should read this post and this documentation about Android Deep Links.
For your understanding, you should read this documentation about handling Android Deep Links and Android App links, and the difference between them. See which is better for your needs.
You can use deep linking
https://developers.tune.com/sdk/deep-linking-to-your-mobile-app-from-your-website
Here in the example one html code is given you can add the js code in your page and you can remove the setTimeout as it is redirecting to play store if you don't want to force user to install the app

Display SQL Data on a PhoneGap App - Possible Using URLs?

I'm building a web application using PHP & MySQL. A user profile displays MySQL data using a select query like so:
SELECT a.name_first,a.name_last,b.bio_category,b.bio_short,b.bio_full,b.profile_img
FROM stars_login a, stars_data_bio b
WHERE a.id_s=b.id_s
AND a.id_s='$select_id'
The $select_id variable is defined using ?id= in the URL like so:
http://localhost/public_html/profile/profile.php?id=1
I'm also looking at turning the web application into a phone app. I don't have much experience creating native apps as I'm more of a web designer.
I have however used Adobe PhoneGap before (cheating kinda, I know).
My question: is there a way to display a user profile in an Adobe PhoneGap app using a similar method to my exploded URLs in PHP?
Eg: there will be a search bar on my PhoneGap App home screen, where a user can search for a username. When they hit the search button they will be redirected to the profile view (similar to the profile.php page on my website). The PhoneGap profile page will then show the SQL data for the corresponding user.
I'm not sure if this is possible, but if it is, could you let me know how to go about it?
Also - how would I display the data that is stored server side on my local app?
I'm fairly new to all of this - I'm 18 and self teaching for a personal project of mine. All help is appreciated!
You can do this in your Hybrid app:
Create an HTML form which will serve as the front end to user
Use AJAX to send input from the user to your server
Process whatever pass parameter/s in that ajax request (such as the query you mentioned).
Return the result as json/jsonp then display the result back to the front end (no.1)

Facebook App Insights don't reflect changes at likes and comments

I'm trying to develop a Facebook App that works using Unity3D as front-end but using a PHP Web server to do the Facebook request saving the private key there.
I tested various things like uploading photos and comments an then it get reflected the new App Insigths of the App as Stories Published.
The thing I can't achieve is to see the Likes and Comments of those Stories, it remains 0.
¿There is something that I don't understand about the Likes/Comments there, or I'm doing something bad?
Thank you all.
P.D: Sorry about my English ^^'
Edit:
I can't provide example code of what i've done but I can explain it.
Actually my front-end do get requests to a backend PHP server that do the requests to Facebook.
When a user want to log in the server return the login url in a string and the front-end launches a Internet navigator (in my case is Google Chrome).
The callback url given to Facebook go to a site that closes automatically the navigator and putting in first plane my front-end.
From there you can do the request to the back-end to publish stories in Facebook and then log-out
Actually this is what my application do and it works. The only problem is that the comments and likes that those stories got are not reflected in the App Insights section.

Making a connection to api(OAuth2.0) with php and storing the info local

Dear fellow programmers.
My school has it's own api, sowing classes, teachers etc (sjon result).
What I want to do is create a school app so all the students can see where they have class on their mobile.
What is want is:
Make a connection to the api via oauth 2.0 with php.
Store the values in a local MySQL database
(later stadium)Connect the database to the app and show the results in a table
For now it's just local later on it will work with a SQL server.
I have been trying for three days but I just can't get it to work.
Our school gave me a KEY and a SECREY_KEY
I see alot of info about PECL files and I have never worked with this.
I want to use both keys to get the tokens, the api will eventually give me a mobile login page to login and get my personal student results
How am I supposed to do this, is there a template which makes me fill in my keys and connect to the api?
Thanks in advance

Categories