Codeigniter session is not working on PHP 7.3.0 - rest

I am using codeigniter version 3.1.10 on PHP 7.3.0.when i am setting and retriving sesssion from same method means it will work. when try to accesss session from different method from the same controller and
from different controller will not work.
this is how i set the session
$this->session->set_userdata('somename','10');
get session
$this->session->userdata('somename');

Related

Laravel 8.75 multiple authentication Routing issue

I am working on laravel 8.75 with php 7.4.9.
I am facing issue in laravel route getting error too many redirects.
I want to create route http:127.0.0.1:8000/admin/login
by firing command php artisan route:list i am getting routes like this
I see you are using the same url (admin/login) in get method and post method of login page
So try to change the url to one of them and try again after run php artisan route:clear

Azure communications Web Calling issue

When i use the CallClient of #azure/communication-calling SDK to create a CallAgent, i'm getting 'No CommunicationTokenCredential provided' error even though i'm passing a valid CommunicationTokenCredential
Ex: this.callAgent = await this.callClient.createCallAgent(tokenCredential);
I'm able to successfully deploy a standalone react app & run the following sample application and make a web call as suggested in Microsoft docs. https://github.com/Azure-Samples/communication-services-web-calling-tutorial
But, when I integrate this into my existing React App, I start having issues in creating a CallAgent with the following error:
'azure:ACS:error 27/10/2021, 18:13:48:96 CallClient1:CallAgent1 op:Initialize failed, message=No CommunicationTokenCredential provided,'
I am passing the CommunicationTokenCredential properly while calling the createCallAgent(token) (verified by printing the token as well).
But still, I get this error. Has anyone else faced this issue?

Codeigniter 3.1.9 : Session Lost when using redirect

I faced one issue when upgraded codeigniter 2.2.0 into 3.1.9
Ex : I'm set a session in page1 and then redirecting into page2. After redirect, Unable to get page1 session into page2. In page2, I printed the session is showing empty.
Page1:
$this->session->set_userdata('user', $data );
Page2:
$user = $this->session->userdata('user');
I'm not facing this issue in codeigniter 2. Only facing in Codeigniter3.
Your code is OK.
Before using session library in codeigniter you need to configure session driver and load the session library, make sure you have correct setup.
To configure session driver goto /application/config/config.php, if you are using files for session driver make sure you have read and write permission for $config['sess_save_path'] location.
You can autoload the session library by adding session to $autoload['libraries'] array in /application/config/autoload.php

WARN org.springframework.web.servlet.PageNotFound - Request method 'POST' not supported

Os is Mac Os Maverick.
In a jhipster context (last version, 1.2.2), I get an error when I request the default application on an entity I have just generate using yo jhipster:entity generator.
I run a yo jhipster to create a vanilla application with mongodb as database, java 7 and nothing special.
Then I run grunt build and grunt server for hot reload on the client part and mvn spring-boot:run for the server side app.
When I go to the http://localhost:8080/ url, I get the normal page. I can sign in with either the user or admin login.
I run the yo jhipster:entity foo to get an exemple of rest service in the back end.
When I request for the foo resource with the URL http://localhost:8080/#/foo, I get the page to CRUD the resource as it is said on the jhipster website.
But when I try to create a foo item with the modal form, I get an error on the back end server log ([WARN] org.springframework.web.servlet.PageNotFound - Request method 'POST' not supported).
I can't figure out how to solve this.
Do I miss something in the documentation ?
Do you have any idea, hint ?
I have the same issue using H2 as development database instead of mongodb.
Thanks.
Hervé
This might be due to MongoDB, if you have a date field.
We will release very soon a new and improved Entity sub-generator, which should work better for you. While testing it, I had a serialization issue with MongoDB and a date field, and I corrected it in this new version. This is due to Jackson which can't serialize Joda Time dates (the correct annotations were only generated for SQL databases, not NoSQL databases)

How to create HelloWorld Zend Soap Server & Client over SSL using Self Signed Certificate

I am trying to create a basic SOAP Server over SSL. Before making Web Services available on my Production website, I have to test it on Development system with has got Self Signed Certificate (Whose authentication is a problem right now). Following are the problems I am facing in that regard:
When I try to call https://zendsoap.lan/Zend_Soap_server.php?wsdl
its works fine I can view the wsdl.
But when I try https://zendsoap.lan/Zend_Soap_server.php, I get
this:
SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://zendsoap.lan/Zend_Soap_Server.php?wsdl' : failed to load
external entity "https://zendsoap.lan/Zend_Soap_Server.php?wsdl"
Is that something I should be getting or Some nice looking HTML page
describing the usage of webservice like in NuSoap.
I tried verify_peer=>false as I am running it on dev server so no need to verify my own created certificate, but obviously on production I want the Certificate to be verified.
This thing work fine with NuSoap but most of the stuff in NuSoap is deprecated for our server which is running PHP 5.4.6, So the most reliable solution for me using PHP's SOAP extension. And the reason for me using Zend is we're in process of moving our system from some third party framework to Zend Framework and everyday I get requests from client to add this & that new components, I assumed if I develop every new request from Client using Zend libraries then it will be easy for me in later stages to move to Zend Framework.
openssl is enable and tried with defining local_cert as well, but no Joy.
I hope I made some sense there.
Basically looking for some instruction how to create Self Signed Certificates for this purpose, what should be the code for Server & Client.