Hi all,
just a simple question about a great problem...
In my web app i use Struts, Spring and Hibernate.
I've a lot of Business (classes that edit the database with Hibernate), many action that interact with Business.
In Spring configuration i've inject SessionFactory in Business and the Business into Actions.
When I call a busines...
My problem: I have few buttons in the page I'm modifying - they have onclick events:
javascript:window.location.href='http://www.another.page.com/'; return false;
I have to send $_SESSION variable to redirected page. I can't do it in previous page because the variable will be different for each button. How can I do it?
...
Hello,
is there some kind of standardized way which would allow me to make my ASP.NET MVC web app sessions entirely cookie*less*, but still keep session support through some standardized hidden form field value on every page (e.g. which would get parsed transparently on every request)?
P.S. I'm not looking for a URL based /(sessionid)/ ...
How can you use the part after the question mark in the url which comes as a output of the following variable?
$_SERVER['HTTP_REFERER'];
I run unsuccessfully
if (0 !== $_GET['question_id'] && isset( $_GET['question_id'] ) ) {
$result = pg_execute( $dbconn, "query_fetch", array( $_GET[...
I have read..some articles on the internet, but i don't get it :|, can you guys give me an example, how to make something like this: $_SESSION['name'] = 'value'; and echo $_SESSION['name'].How can I create something like this, with ZF?
Best Regards,
...
I'm using uploadify, and i can't set sessions in my php files, my script looks like this:
$("#uploadify").uploadify({
'uploader' : '/extra/flash/uploadify.swf',
'script' : '/admin/uploads/artistsphotos',
'scriptData' : {'PHPSESSID' : '<?= session_id(); ?>'},
'cancelImg' : '/imag...
Hi, I just read an article somewhere. They are using session_id store the login and logout time for every successful logged in user in a temporary table. Which means, the table would be deleted once the session destroyed. So why are they creating the tables??
Is there any use of the temporary tables? And why must use session_id??
What ...
I am using MySql 5
Hi I am using/start learing JDBC. Well I got stuck here: After an user authenticated, I would like to start/generate the session for the user. How do I do that?
In php, I know, we can start by using the "start_session()" function. Is there any similar function in JDBC?
If there is no such kind of functions, how do w...
I'm running a PHP + APACHE + CENTOS Linux combination.
I have implemented a login & logout on the website.
My question is, how can I know when the php session has timed-out (User has closed his browser without logging-out)?
The reason is, I want perform some cleanups and/or database updates (calling another PHP) when the user has don...
I'm a newb to the Python world and am having the dangest time with getting sessions to work in my web frameworks. I've tried getting Beaker sessions to work with the webpy framework and the Juno framework. And in both frameworks I always get a KeyError when I try to start the session.
Here is the error message in webpy (its pretty mu...
I have an ASP.Net website on IIS7 and I am planing to increase the MaxProcesses to match the number of cores on the server (4 cores, 64bit Windows Server 2008).
From what I read, if I increase the MaxProcesses to create a web garden I have to set an out-of-process state server, so I am planing to use the ASPState service to share sessio...
Well as I have posted earlier too...I have created a site in two languages. One with URL www.mainDomain.com (English) and other with www.fr.subDomain.com (French).
Both are done in CakePHP,in french I have just changed the views of it to French. But the problem is, when anybody login's in English version and then switches to the French ...
Hi,
I'm struggling to apply RESTful principles to a new web application I'm working on. In particular, it's the idea that to be RESTful, each HTTP request should carry enough information by itself for its recipient to process it to be in complete harmony with the stateless nature of HTTP.
The application allows users to search for med...
I want to pass some data between an existing excel application and an existing ASP.Net VB Webforms application.
I thought a hyperlink with some query string variables would be the most straightforward means of doing this. However, it seems that the hyperlink does not retain the session of the logged in user.
Testing this with the same ...
Sessions are started via session_start(), I realize that much, but to make sessions persistent, they need an ID.
Now, the php.ini file has a setting:
session.use_cookies = 1
So I don't have to pass the ID around. But there's another setting:
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetim...
Hi, i have a problem in asp.net web-application.
I'm using UrlRewritingNet.UrlRewrite and it's works fine only when there is no uses of session on page.
for example:
simple page Default.aspx with code:
<% Session["some_value"] = "test"; %>
If i access it via address
http://somesite.net/Default.aspx
it's ok, but if i try
http:/...
Hey guys,
I need to know which class in Tomcat (6.x) is responsible for placing the SessionID either into a cookie or appending it to the request.
Is this done after all Filters are passed?
I need to modify the SessionID before the response is sent to the browser...
...
I want to set the current form object as session parameter before submitting the form.Is it possible?
<html>
<head>
Title
</head>
<body>
<FORM method="test" name="test" enctype="multipart/form-data" action="sample.jsp" >
<select name="test" id="test">
<option>1</option>
<option>2</option>
</select>
<input type="submit" value="Submit">...
I am creating a login script that stores the value of a variable called $userid to $_SESSION["userid"] then redirects the user back to the main page (a side question is how to send them back where they were?). However, when I get back to that page, I am echoing the session_id() and the value of $_SESSION["userid"] and only the session i...
When a person registers on my site, or logs in, they are sent to "thanks.php".
The page checks is you're logged in or not and if so, tells you what you can do and if not, gives you a link to the register.php page.
However, anyone can make their own cookie and trick the script like that.
How do I protect myself from this?
One thing I ...