Sessions To Two Profiles?

Mar 15, 2010

I have two files which has two types of profiles (user and Admin), Now the problem is how do i create a session which if im a user takes me to the user page and when im admin takes me to admin page

View 1 Replies


ADVERTISEMENT

Parse Href Attribute And Get All Of The /profiles/######## Part Of The Anchor Tag?

Aug 28, 2010

Right, so there are a bunch of links in this format: <a href="/profiles/########">username</a>

I'm using greasemonkey, and what I want to do is go through and get all of the /profiles/######## part of the anchor tag. I'm using Regex and I can't seem to get a match.This is what I have so far:

function ok() {
var names = document.getElementsByTagName('a');
var reg = new RegExp("WHAT GOES HERE?");[code]....

what is actually desired is I want there to be a way I can select these somehow as well..

View 1 Replies View Related

Javascript Sessions?

Jan 2, 2003

Not sure if these are possible but can someone do sessions with javascript or is that only a php/asp thing? If it is possible can someone point me in the right direction?

View 2 Replies View Related

Sessions In A Popup Window

Nov 16, 2006

We have an application that runs in a popup window with custom menus,
toolbars etc. The application uses session cookies. We would prefer for
the session cookies to be valid only in the popup window. In other
words, if the user cuts and pastes the URL into the opener address bar,
the session should not be valid (the application should not run) in the
opener window. Is there any way to enforce this behavior with the
window.open method or otherwise?

View 1 Replies View Related

Clearing Cookies And Sessions After Logout?

Jan 17, 2011

i wanna make a confirmation alert box (jquery i suppose) then when triggers when someone click log out. on cancel it stays there but on ok it destory the session and cookies and logout.

View 17 Replies View Related

Popup Window In Sessions Unlocked?

Aug 13, 2009

can someone help me to get this cod , javascript??

View 6 Replies View Related

Monitoring Logged-in Users With Sessions: Autologoff

Jul 23, 2005

I'm currently relying on logged-in users hitting "logout"
(logoff) before they leave, in order to terminate the session.

With PHP the session filename is in a cookie that lasts for the
current session. The problem is that the server does not know
when the current session expires. (I have quite long timeouts.)

Did anybody attempt a script to automatically call "logout"
when the session expires? It seems quite complicate, as there
are multiple urls that share the same session and the user is
not actually logging out until one of them is open in some
client window.

View 4 Replies View Related

JQuery :: Creating Php Sessions Variable When A Link Is Clicked?

Aug 16, 2011

I'd like to use $.post to create php session variables on the fly when a link is clicked, and then let the browser follow the href content.

[Code]...

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved