Hi, Good question. Better take a look at the documentation: https://github.com/Jasig/phpCAS/blob/master/source/CAS/Client.php#L1687
To avoid unwanted logout request calls, you can choose to check the servers allowed to call your application: in the method, the first parameter is whether you want a check (can be false for tests), the second parameter is a list of the allowed servers (it should be your CAS server). Best regards, Jérôme 2015-07-22 11:10 GMT+02:00 Andi Zulfadli <[email protected]>: > Hi,Sir Jérôme LELEU > > Thank you very much for your help Sir. > > I want to ask about what is the value of "myappserver" in the function " > > *phpCAS::handleLogoutRequests(true, array('myappserver'));"*what > information that i have to fill into the myappserver variable?? > > > > > > *thank you very muchbest regardsAndi Zulfadli* > > > > 2015-07-22 1:32 GMT-07:00 Jérôme LELEU <[email protected]>: > >> Hi, >> >> The CAS server is responsible for contacting the user applications and >> notifying them that a logout is required (when a CAS logout is called). >> >> So you generally need to configure something on the application side to >> handle CAS server logout requests. With the phpCAS client, you should have >> this: *phpCAS::handleLogoutRequests(true, array('myappserver'));* >> >> Best regards, >> Jérôme >> >> >> 2015-07-21 18:34 GMT+02:00 Andi Zulfadli <[email protected]>: >> >>> what is the solution about my case. >>> >>> The problem is when i logout with the original link of my CAS Server, >>> (ex : "https://cas.poliupg.ac.id/cas/logout"). it is successfull logout >>> in my cas server . but not in my phpCAS client. >>> >>> I have to access (ex: "http://[phpCAS_URL]/?logout") for succesfull >>> logout in my phpCAS. >>> >>> And it separated between action phpCAS client logout and cas server >>> logout to make the those links are logout. >>> >>> but my purpose, i just need to logout with one way, i can logout >>> through the original link cas server or via phpCAS client link logout. >>> and it will make the two links are logout simultant. >>> >>> what is the solution?. >>> >>> Thank you very much for you good response and help. >>> >>> -- >>> You are currently subscribed to [email protected] as: >>> [email protected] >>> To unsubscribe, change settings or access archives, see >>> http://www.ja-sig.org/wiki/display/JSG/cas-user >>> >>> >> -- >> You are currently subscribed to [email protected] as: >> [email protected] >> To unsubscribe, change settings or access archives, see >> http://www.ja-sig.org/wiki/display/JSG/cas-user >> >> > -- > You are currently subscribed to [email protected] as: [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
