I have implemented single sign on multiple sub domains like:
www.abc.com
my.abc.com
support.com
using cookies or called session cookies(it will expire as browsers close).
syntax:
setcookie("VARIABLE_NAME", VALUE , 0, '/' , '.domain.com');
parameter are name of cookie variable name , value , time of cookie expire(zero means it will de...
I have the Shovell source code from Simply Rails 2 and it used to work, but now that I uninstalled everything, tried to program desktop apps for a while and reinstalled everything, it doesn't work.
I go to shovell:3000/session/new, then submit anything, then shovell:3000/session without new in the URL is loaded as if I hadn't submitted ...
After a successful call to both LogonUser and ImpersonateLoggedOnUser it doesn't appear that my process is running as the new user...
system("whoami");
prints out:
Chris-PC\Chris
when it should be:
Chris-PC\LimitedGuy
Is there a function I'm not calling or something?
My code:
if(argc == 6) // impersonate
{
printf("[~] Logging...
after failing to login 3 times (wrong password, username), i want the browser/window/tab to be closed. how can i do this in javascript or php? and also can you give me some suggestions on what i can do to my system when user fails to login 3 times. thanks.
...
Hi,
I am implementing a WCF client application, and wrapping to a WCF service. My wrapper class looks something like..
Class ServiceWrapper: IServiceCallBack{
// Some service funcions
public void OnSendHeartBeat(HeartBeatInfo info)
{
// this call back is triggered every 3 seconds.. Timeout is 10 seconds
...
Problem:
I want to create a custom log in control that posts securely to HTTPS without affecting other submit buttons on the page.
If I had been writing this in ASP.NET MVC or any other language for that matter, I would just create a new form tag with an form action="https://...". Now I'm stuck in a ASP.NET web forms site. That means th...
Hi, I am trying to manually implement a login system in ASP.NET 3.5. Basically, on load, I would like the site to check and see if user object is active, if not, than I want the login page to appear.
After user has logged in successfully, I would like the user to be able to access the same page he has requested originally.
for example...
As the title said, login page should be in flash(login.swf), and the redirect to a php page (account.php). In account.php, I will need to check session, for example:
isset($_SESSION['loggedin']){
echo "Welcome back, $user";
} else {
echo "You need to login and main site";
}
Where do I generate the sessions, and where do I store it...
What would be the best way to send an alert message to the user if it requires them to login, but at the same time avoid an ajax call? I might have code like <a href="#" id="vote"> which would trigger an ajax function based on the click. I was thinking I would check on the server side if a user is logged in and replace it with:
<a href="...
I want to make a login page in asp.net using c# and also using of session in that login page.
Kindly help me to make a such page.
Thnx in advance
...
Hi :)
I'm trying to integrate Facebook Connection module to an old phpbb 2 version.
Have you ever tried a similar integration or found a nice tutorial showing how to do it ?
thank you :)
...
I'm new to php. I've been looking at php login tutorials but they all seem relatively insecure. I would prefer to use a php authentication api or framework. Does anyone know what I can use to implement robust login functionality into my site?
...
Hello,
I would like to get the list of XBOX friends for a certain gamercard (http://live.xbox.com/en-US/profile/Friends.aspx) and display it in a widget for my site.
I know that there are alot of iPhone apps that do just that, but I would like to do it on the web, without an iPhone.
Does anyone know of a PHP class to either login via ...
I am having difficulties getting the following to export. I am running CR2008SP2 and ASP.NET 3.5 against an Oracle 10g database.
If i do not set any of the parameters, then the page works great, and pumps out a pdf(well, except for the fact that because the parameters weren't specified, its not really the data i want. but theres no erro...
I am currently re-writing my functions script (PHP) for my login system. Is the below code safe and a "good" way to check if the user is logged in?
function loggedin()
{
$ID = ($_SESSION['ID']);
$sql = "SELECT `online` FROM `users` WHERE `ID` = '$ID'";
$result=mysql_query($sql);
$count=mysql_num_r...
In ASP.Net, I am trying to get the UserId (i.e., the user GUID) of the user that just logged on, in the LoggedIn event of the Login control. That is, I want to grab the UserId before the user is moved to to the next page. This is the code I am using:
Protected Sub Login1_LoggedIn(ByVal sender As Object, _
ByVal e As System.EventArgs) ...
Hi - I'm trying to redirect a user to a url containing his username (like http://domain/username/), and trying to figure out how to do this. I'm using django.contrib.auth for my user management, so I've tried using LOGIN_REDIRECT_URL in the settings:
LOGIN_REDIRECT_URL = '/%s/' % request.user.username # <--- fail..
but it only seems t...
We have a protected directory on our site, where users are required to login using the .htacces system.
I know we can get the username of the person thats logged in through a PHP variable
$username = $_SERVER['REMOTE_USER'];
I'm wondering if it's possible to show ALL users logged in?
This way we could show something at the top ...
How can I increase time for keeping user logged in.
Even after comming back after few days.
I don't want users to login each time they open a browser.
...
Why do i have to use some persistent-login module to make my users login into Drupal 6
for longer period of time.
Why changing php.ini or settings.php doesnt works ?
from a "webtools" I see my cookies being expired in next day, but after few hours it happend to log me out.
This is like spontagenious action, no pattern to follow / predi...