web-applications

How to manage user and group using DB and PHP?

Hi, We've Web site for software repository for internal team to access it. Currently there are many users and divided into various groups. To manage them, we're using string like binary nos., like '000101' and do check 1's and its position, based on that, we decide user belongs which group(s)... For example, '01111' => group 'test1' ...

How to remove references to HttpWebRequests when making calls to webservice that don't return any response?

Hi, When making calls to a webservice from an asp.net web application, to avoid creating a new proxy for each webservice call, I store the proxy in a dictonary. So when a call to the webservice is being made, an instance of the webservice proxy is returned based on a key passed to a factory method. If a proxy for the corresponding key i...

Different session timeouts for different users in same web app

I have a requirement within the same web application to set 2 session timeouts. 60 minutes for regular users and 3 hours for admin users. I am told this is not possible and I will need to host a separate web app for the admins. Is there any workaround? UPDATE: Thanks to Bozho and Kurt's replies - I have a followup question. Does ses...

how to redirect url to jsp in web.xml

(Should be an easy one-) How can I redirect all urls of the pattern yada*.js into a my specific jsp. will this addition to my web.xml work: <servlet-mapping> <servlet-name>MySpecific.jsp</servlet-name> <url-pattern>yada*.js</url-pattern> </servlet-mapping> or perhaps I must use javax.servlet.filter for that purpose?...

Web Apps: Storing ID in hidden fields safe?

I just had this thought, I don't know if I am slow though. Usually, I store the id of the item I am editing in a hidden field. Then in backend (I am using PHP/Zend Framework btw), I get it to determine which item gets edited. But then I thought, in something more secure, eg. edit profile, the user can somehow edit a hidden field right...

Use a specified javascript engine?

Is it possible to use your own javascript engine in place of the browser's engine? We have a cloud based JAVA app and uses a lot of javascript and ajax. I don't know a ton about Java (just enough to get by), I'm an ajax programmer. Mozilla has a javascript engine called rhino. Is that engine only for running javascript inside a native...

Backwards HTTPS; User communicates with previously generated private key

I am looking for something like https, but backwards. The user generates their own private key (in advance) and then (only later) provides the web application with the associated public key. This part of the exchange should (if necessary) occur out-of-band. Communication is then encrypted/decrypted with these keys. I've thought of some...

Global.asax and web application lifetime

Question: When a webapplication gets started, it executes Application_Start in global.asax. Now, a web application gets started as soon as the first request for a page in that application reaches the server. But my question is: how long will the application run until the application is stopped. I mean when after the first page request...

Password change: Best practice

I'm writing Baby's First Web Application. My first task has been to set up an authentication system, which I think I've done okay on. I'm new to the whole thing, though, so: When the user reports that he's forgotten his password, I e-mail him a temporary replacement password in plain text. It's perhaps not the most secure way to handle ...

Wicket 1.4.9 cannot use AjaxRequestTarget from modal after Feedback error!

I create a simple wicket web app for using description this problem when i set require is true at TextField and submit with null value in Textfield. i have got a feedback panel message (This sound good) but my use case i want to get my data from modal windows and send back to this form but it can not AjaxRequestTarget update TextField ...

Server Error in '/PSS.NET' Application.

iam trying to run an application visual studio 2008.. got this error.. help me to proceed.. thanks a lot in advance. Server Error in '/PSS.NET' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error deta...

Read IPhone or iPad UUID using web application.

Do you know if is possibile to get the uuid, the result of [[UIDevice currentDevice] uniqueIdentifier], using a web app ? I need to access from iphone/ipad a web page using safari (and not UIwebview under application control) and I should identify the device using its UUID. For example I would like to send an email Message to a user con...

Application pool memory gets out of control after updating dlls

We are experiencing Memory issues every time we update the dll's using SVN. The IIS process(w3wp.exe) takes up more than 1GB of memory which is usually 300 - 400 Mb under normal conditions. So every time we update dll's we had to recycle the application pool. Is it because the old dlls are still cached even after updating them? Do we nee...

Is collecting user usage information a popular practice?

Do most web applications log and warehouse user usage information? I assume the big guys like google and facebook do, but is the practice widespread? If so, what are the major uses for this information and are there any best practices for collecting and using it? Any anecdotes about why this is worthwhile or what you gained from your ...

What language (Java or Python) + framework for mid sized web project?

I plan to start a mid sized web project, what language + framework would you recommend? I know Java and Python. I am looking for something simple. Is App Engine a good option? I like the overall simplicity and free hosting, but I am worried about the datastore (how difficult is it to make it similarly fast as a standard SQL solution? + ...

Does jQuery encourage laziness and dis-organized UI designs?

When I see a question such as: http://stackoverflow.com/questions/3428760/how-do-i-exclude-elements-whose-id-ends-in-a-certain-suffix-using-jquery I cannot help but thinking: does jquery encourage too much of this sort of ad hoc (and processor intensive) querying of the DOM? Shouldn't we be organizing our UI's better so that these sorts...

View HTML code of a iPhone WebApp that's on the Home Screen

Does anyone know how to view the HTML code of a webapp that's saved to the iPhone home screen? Some webapps redirect to a different html file when they get "promoted" to the home screen. It's that code I'd like to examine. ...

why should a human resource system be a web application not a desktop?

from your experience, why do you think it's better to choose the web as a platform for such application? ...

Should ajax calls go through as few as possible entry points to an application or many specific methods

I'm building a web app with a lot of ajax calls to be made. Should I be trying to keep a small number of methods, and just pass in information about what type of request it is, and then switch based on that type inside the method or Many smaller methods, so don't have to pass in type, but more code to write setting up each method. Cu...

Why am I having trouble accessing a .properties file in a standalone instance of tomcat but not in an eclipse-embedded instance?

I wrote a simple Hello World Servlet in Eclipse containing the following in the doGet method of my HelloWorldServlet.java PrintWriter writer = response.getWriter(); String hello = PropertyLoader.bundle.getProperty("hello"); writer.append(hello); writer.flush(); PropertyLoader is a simple class in the same package as the Servlet th...