pathans
Posts: 46
|
Posted: 11/15/2012, 12:00 PM |
|
I have some other php pages. and i would like to add login from Code charge.
is it possible i can add a include page or security level to these pages?
|
|
|
Lucius
Posts: 220
|
Posted: 11/18/2012, 3:32 PM |
|
Hi,
Without taking a look at the pages you would like to supplement with CCS login it is hard to say what you need.
It is possible I guess, but it can be very simple or very hard.
You would have to know few things:
1. how currently security/login works for your site (what are login/security session variables passed), what is the db structure of relevant tables
2. how to combine or modify CCS login/security with current solution - basically how it works in CCS
3. how to include CCS page into your current solution (depends on the framework if any is used I guess)
Also you need to know that even if you would like to have simple login from CCS, you would need to publish it as a full project, so all files that are automatically generated from CCS would have to be added to your current site.
To sum up, the answer to your question is a vague "maybe"
|
|
|
bannedone
Posts: 273
|
Posted: 11/19/2012, 7:00 AM |
|
Hi
It is actually pretty simple to include CCS :Login Checking to non-CCS php scripts.
You can get the CCS Login parameters by getting the session variables
$_SESSION['GroupID] will be the Security Group Of the User
$_SESSION['UserID'] willl be the logged in User ID
$_SESSION['UserLogin'] will be the user's login name
After getting the value your are looking for, take the appropriate action.
These actions could be kick the user out if the GroupID is not correct or kick the user out if not logged in.. etc.
Have Fun
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
|
|
pathans
Posts: 46
|
Posted: 11/20/2012, 1:12 PM |
|
Lucius,
I think in one of the older version of Code Charge.
you can add security check if that check passes it shows you the content otherwise redirect you to login page.
so basically you include login function and rest of the page you have your code used outside of Ccharge.
|
|
|
|