link to pass other login variables to cmsb login
7 posts by 3 authors in: Forums > CMS Builder
Last Post: March 9, 2009 (RSS)
By markr - February 25, 2009
The other variables are easily reused ($username and $password) and I would make sure their values matched that of cmsb's login variables.
Thanks in advance...your support team is great.
Re: [markr] link to pass other login variables to cmsb login
By Dave - February 25, 2009
Yes, you can automatically login with a link like this:
admin.php?username=yourName&password=yourPassword&action=loginSubmit
Note that GET urls such as this (with values in the url) may be logged in your web server's logs and webstats pages, so make sure those are not publicly accessible.
Hope that helps!
interactivetools.com
Re: [markr] link to pass other login variables to cmsb login
By markr - February 28, 2009
[font "Verdana"]admin.php?username=bob&password=123abc&action=loginSubmit
...but not with php variables...
admin.php?username=<? php echo $username ?>&password...
Will it work with variables?
Re: [markr] link to pass other login variables to cmsb login
By ross - March 2, 2009
You should be able to do it with those variables. It really depends on what they actually return though. If you are running into trouble with them, my first thought is that the values in those actually have spaces or something in them.
I would make sure that you only get the username and password without anything else in them.
If you wanted to post the link that you get when the variables in there, we could try to troubleshoot it together.
Thanks!
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [markr] link to pass other login variables to cmsb login
By Dave - March 2, 2009
If you post the link feel free to replace some of the characters so you're not posting your actual username and password...
interactivetools.com
Re: [markr] link to pass other login variables to cmsb login
By markr - March 7, 2009
The full link in case others want to see
<a href="http://www.mysite.com/cmsAdmin/admin.php?username=<?php echo $username ?>&password=<?php echo $password ?>&action=loginSubmit">Page Content</a>
Re: [markr] link to pass other login variables to cmsb login
By Dave - March 9, 2009
interactivetools.com