I have a C# form that we browse our web application with. If we are inside the form and logged in and we click a link that opens a new window (an Internet Explorer window), it asks for my credentials again.
We use cookies to store the session for authentication. Is there a way to make the account stay logged in whether it is in the fo...
Hey everyone,
I'd like to implement a voting system on my site, without having to force them to create an account. They would ultimately be voting up/down a piece of content which has a unique ID.
I know that I could store entries in a table with IP/ID, but what if there are more than one user coming from the same IP?
Is there a way t...
Hi,
When calling page methods or web services with either jquery or MSAjax, the Session object appears to be null so Im finding it hard to track users who execute them.
Seeing that the session id is sent with the cookie on each request, is it possible to obtain the session object from somewhere?
...
Hi .
Currently I have a class in the constructor stores variables in $_SESSION.
I was told not to store the user_id in $_SESSION, because then a user could change the ID to a one of his liking, and then access the website freely from any account.
Instead, I've stored a session_id and created a table that has links a session_id to a us...
Hi,
I have some basic code that I place at the header of every page to make sure that the user is logged in. I was hoping someone could take a look at it and give me some suggestions:
if ($_SESSION['logged_in'] == 1) {
$handle = dbconnect::init;
$result = $handle->select()->from('session_id')
...
I have some trouble understanding this one so here it is.
I'm trying to set a cookie and display the value on the page using ASP.NET + C#.
here's my code:
protected void lbChangeToSmall_Click(object sender, EventArgs e)
{
Response.Cookies["fontSize"].Value = "small";
}
and
<asp:LinkButton runat="server...
Hello,
I have a Rails app where I set a set a session variable the moment a user lands on my site with the referer and the page they hit. Additionally, I have Google Optimizer sending traffic from my homepage to various landing pages. The problem is that I think Google Optimizer is sending users away before the cookie is set.
Is t...
Setup: Grails 1.1, Acegi/Spring Security plug-in
I want users to log in over SSL, so I have '/login/**' in my channelConfig.secure[] list, but almost everything else is in channelConfig.insecure[]. Every request for /login gets redirected to https:// and every other request is redirected to http://.
My problem is that the login process...
I'm a PHP virgin (first day), so please type slowly.
I have a number of images, bg_001.jpg, bg_002.jpg, etc., which I want to rotate through each time the page is refreshed. I tried this:
if (isset($_COOKIE["bg1"])) {
$img_no = $_COOKIE["bg1"] + 1;
} else {
$img_no = 1;
}
$filename = 'bg_' . sprintf("%03d", $img_no) . '.jpg';
if (!...
In Firefox it's possible using the following...
HTMLDocument.prototype.__defineGetter__("cookie",function (){return "foo=bar";});
HTMLDocument.prototype.__defineSetter__("cookie",function (){});
This doesn't cause any errors in WebKit, and WebKit definitely supports __defineGetter__ and __defineSetter__, but it doesn't work. Guessing ...
I'm trying to write a cookie in ASP.NET under https, but I see a plain text cookie in the client machine. Shouldn't the cookie be encrypted by default under an https connection?
...
My company has a little widget that plugs into shopping carts. We are running into a problem where setting cookies in IE7 is not working. This is happening because we are a 3rd party because we are embedded into the site via an iframe.
I have seen several post that say the way to solve this problem is by putting a P3P compact policy i...
I am not able to set cookies using following statements
self.request.headers['Cookie'] = 'uniqueid = ',unique_identifier
self.request.headers['Cookie'] = 'nickname = ',nickname
as
self.request.cookies
is returning null dictionary in another request.
environment is python on google app engine
...
Update: clarified question (I hope)
Hi.
I'm developing a plugin in Wordpress and I'm outputting elements according to user privileges A and B.
In case of A, I ouput element "Foo".
In case of B, I output element "Bar".
Up till now, I haven't checked if an element exists before I try to retrieve the value.
This of course gives me a java...
We are building a plugin for Rails to be used within iframe Facebook applications, and at one point we need to check if Rail's session id cookie as been set or not.
By default, this cookie is named _myprojectname_session, what we need to find out is the actual name of the cookie itself. So if it's not set, we can do some redirects to ma...
I've written a simple entry form that compiles information onto a database, and I'm having trouble with my required fields...
I use a form to process the data via post method if the user neglects to fill in a required field I would like to bring him back to the original form with his/her previous fields entered.
How to I pass info back...
Project I'm working on gets cookies from the browser to check for certain things. In FF, Safari, or Chrome, this works fine, but in IE 8 (don't have an earlier version of IE to test and MSFT won't let me uninstall IE 8 and have a working IE 7), the only cookies it sees are the session cookies, not any of the persistent cookies (the ones ...
Hi folks,
I am using the UserData Property of the FormsAuthenticationTicket to store some userspecific information. I have a HelperClass which deserializes this UserData into a custom Object for strongly-typed access. I have my controller setup as follows
public class SomeController : Controller
{
private CookieData _cookieData;
...
Hi,
I'm trying to play/stream a mp3 hosted on a website. The site requires a cookie header to be set, but I'm having trouble setting that or getting the container to do that for me.
NSURL *sampleUrl = [NSURL URLWithString:@"http://domain/files/sample.mp3"];
NSData *sampleAudio = [NSData dataWithContentsOfURL:sampleUrl];
Up until ...
This is in reference to question How to maintain sessions with C++ code?
Is there a C++ library (like Boost) available to manage sessions for web based CGI applications?
How feasible is it to make use of Cookies and URL Rewriting in C++ code for web based CGI applications?
...